{"action":"created","issue":{"url":"https://api.github.com/repos/felipecruz/exemplos/issues/1","labels_url":"https://api.github.com/repos/felipecruz/exemplos/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/felipecruz/exemplos/issues/1/comments","events_url":"https://api.github.com/repos/felipecruz/exemplos/issues/1/events","html_url":"https://github.com/felipecruz/exemplos/issues/1","id":107374052,"number":1,"title":"04_05_full_main.py - nome da variável out_file não foi declarada na função download","user":{"login":"medeirosthiiago","id":4070127,"avatar_url":"https://avatars.githubusercontent.com/u/4070127?v=3","gravatar_id":"","url":"https://api.github.com/users/medeirosthiiago","html_url":"https://github.com/medeirosthiiago","followers_url":"https://api.github.com/users/medeirosthiiago/followers","following_url":"https://api.github.com/users/medeirosthiiago/following{/other_user}","gists_url":"https://api.github.com/users/medeirosthiiago/gists{/gist_id}","starred_url":"https://api.github.com/users/medeirosthiiago/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/medeirosthiiago/subscriptions","organizations_url":"https://api.github.com/users/medeirosthiiago/orgs","repos_url":"https://api.github.com/users/medeirosthiiago/repos","events_url":"https://api.github.com/users/medeirosthiiago/events{/privacy}","received_events_url":"https://api.github.com/users/medeirosthiiago/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-20T05:28:51Z","updated_at":"2015-10-20T23:44:21Z","closed_at":"2015-10-20T23:14:44Z","body":"opa felipe, vi que na linha [26](https://github.com/felipecruz/exemplos/blob/master/04_05_full_main.py#L26) a variável _out_file_ não é referenciada nessa função, o parâmetro passado é o _output_.\r\n\r\nApesar que dos dois jeitos funcionam..\r\n```python\r\ndef download(response, output):\r\n    total_downloaded = 0\r\n    while True:\r\n        data = response.read(BUFF_SIZE)\r\n        total_downloaded += len(data)\r\n        if not data:\r\n            break\r\n        output.write(data)\r\n        print('Downloaded {bytes}'.format(bytes=total_downloaded))\r\n```"},"comment":{"url":"https://api.github.com/repos/felipecruz/exemplos/issues/comments/149736544","html_url":"https://github.com/felipecruz/exemplos/issues/1#issuecomment-149736544","issue_url":"https://api.github.com/repos/felipecruz/exemplos/issues/1","id":149736544,"user":{"login":"medeirosthiiago","id":4070127,"avatar_url":"https://avatars.githubusercontent.com/u/4070127?v=3","gravatar_id":"","url":"https://api.github.com/users/medeirosthiiago","html_url":"https://github.com/medeirosthiiago","followers_url":"https://api.github.com/users/medeirosthiiago/followers","following_url":"https://api.github.com/users/medeirosthiiago/following{/other_user}","gists_url":"https://api.github.com/users/medeirosthiiago/gists{/gist_id}","starred_url":"https://api.github.com/users/medeirosthiiago/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/medeirosthiiago/subscriptions","organizations_url":"https://api.github.com/users/medeirosthiiago/orgs","repos_url":"https://api.github.com/users/medeirosthiiago/repos","events_url":"https://api.github.com/users/medeirosthiiago/events{/privacy}","received_events_url":"https://api.github.com/users/medeirosthiiago/received_events","type":"User","site_admin":false},"created_at":"2015-10-20T23:44:21Z","updated_at":"2015-10-20T23:44:21Z","body":"que isso @felipecruz , desculpe a demora! :)"}}