{"action":"opened","number":35,"pull_request":{"url":"https://api.github.com/repos/mozilla/autophone/pulls/35","id":37179240,"html_url":"https://github.com/mozilla/autophone/pull/35","diff_url":"https://github.com/mozilla/autophone/pull/35.diff","patch_url":"https://github.com/mozilla/autophone/pull/35.patch","issue_url":"https://api.github.com/repos/mozilla/autophone/issues/35","number":35,"state":"open","locked":false,"title":"Bug 1172585 - s3.upload() on Win 7 results in IOError","user":{"login":"mjzffr","id":6024326,"avatar_url":"https://avatars.githubusercontent.com/u/6024326?v=3","gravatar_id":"","url":"https://api.github.com/users/mjzffr","html_url":"https://github.com/mjzffr","followers_url":"https://api.github.com/users/mjzffr/followers","following_url":"https://api.github.com/users/mjzffr/following{/other_user}","gists_url":"https://api.github.com/users/mjzffr/gists{/gist_id}","starred_url":"https://api.github.com/users/mjzffr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjzffr/subscriptions","organizations_url":"https://api.github.com/users/mjzffr/orgs","repos_url":"https://api.github.com/users/mjzffr/repos","events_url":"https://api.github.com/users/mjzffr/events{/privacy}","received_events_url":"https://api.github.com/users/mjzffr/received_events","type":"User","site_admin":false},"body":"Cause: \"Whether the name can be used to open the file a second time, while the named temporary file is still open, varies across platforms (it can be so used on Unix; it cannot on Windows NT or later).\" [1]\r\n\r\nSo I propose to let `tf` close before setting the contents of the key and then delete the temp file.\r\n\r\n[1] https://docs.python.org/2/library/tempfile.html#tempfile.NamedTemporaryFile","created_at":"2015-06-08T17:58:29Z","updated_at":"2015-06-08T17:58:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/autophone/pulls/35/commits","review_comments_url":"https://api.github.com/repos/mozilla/autophone/pulls/35/comments","review_comment_url":"https://api.github.com/repos/mozilla/autophone/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/autophone/issues/35/comments","statuses_url":"https://api.github.com/repos/mozilla/autophone/statuses/711adae7515246e6ecfb3b55e46a8ab3e8d3361c","head":{"label":"mjzffr:fix_upload","ref":"fix_upload","sha":"711adae7515246e6ecfb3b55e46a8ab3e8d3361c","user":{"login":"mjzffr","id":6024326,"avatar_url":"https://avatars.githubusercontent.com/u/6024326?v=3","gravatar_id":"","url":"https://api.github.com/users/mjzffr","html_url":"https://github.com/mjzffr","followers_url":"https://api.github.com/users/mjzffr/followers","following_url":"https://api.github.com/users/mjzffr/following{/other_user}","gists_url":"https://api.github.com/users/mjzffr/gists{/gist_id}","starred_url":"https://api.github.com/users/mjzffr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjzffr/subscriptions","organizations_url":"https://api.github.com/users/mjzffr/orgs","repos_url":"https://api.github.com/users/mjzffr/repos","events_url":"https://api.github.com/users/mjzffr/events{/privacy}","received_events_url":"https://api.github.com/users/mjzffr/received_events","type":"User","site_admin":false},"repo":{"id":37082018,"name":"autophone","full_name":"mjzffr/autophone","owner":{"login":"mjzffr","id":6024326,"avatar_url":"https://avatars.githubusercontent.com/u/6024326?v=3","gravatar_id":"","url":"https://api.github.com/users/mjzffr","html_url":"https://github.com/mjzffr","followers_url":"https://api.github.com/users/mjzffr/followers","following_url":"https://api.github.com/users/mjzffr/following{/other_user}","gists_url":"https://api.github.com/users/mjzffr/gists{/gist_id}","starred_url":"https://api.github.com/users/mjzffr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjzffr/subscriptions","organizations_url":"https://api.github.com/users/mjzffr/orgs","repos_url":"https://api.github.com/users/mjzffr/repos","events_url":"https://api.github.com/users/mjzffr/events{/privacy}","received_events_url":"https://api.github.com/users/mjzffr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mjzffr/autophone","description":"Mobile-device manager for automated-test frameworks","fork":true,"url":"https://api.github.com/repos/mjzffr/autophone","forks_url":"https://api.github.com/repos/mjzffr/autophone/forks","keys_url":"https://api.github.com/repos/mjzffr/autophone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mjzffr/autophone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mjzffr/autophone/teams","hooks_url":"https://api.github.com/repos/mjzffr/autophone/hooks","issue_events_url":"https://api.github.com/repos/mjzffr/autophone/issues/events{/number}","events_url":"https://api.github.com/repos/mjzffr/autophone/events","assignees_url":"https://api.github.com/repos/mjzffr/autophone/assignees{/user}","branches_url":"https://api.github.com/repos/mjzffr/autophone/branches{/branch}","tags_url":"https://api.github.com/repos/mjzffr/autophone/tags","blobs_url":"https://api.github.com/repos/mjzffr/autophone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mjzffr/autophone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mjzffr/autophone/git/refs{/sha}","trees_url":"https://api.github.com/repos/mjzffr/autophone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mjzffr/autophone/statuses/{sha}","languages_url":"https://api.github.com/repos/mjzffr/autophone/languages","stargazers_url":"https://api.github.com/repos/mjzffr/autophone/stargazers","contributors_url":"https://api.github.com/repos/mjzffr/autophone/contributors","subscribers_url":"https://api.github.com/repos/mjzffr/autophone/subscribers","subscription_url":"https://api.github.com/repos/mjzffr/autophone/subscription","commits_url":"https://api.github.com/repos/mjzffr/autophone/commits{/sha}","git_commits_url":"https://api.github.com/repos/mjzffr/autophone/git/commits{/sha}","comments_url":"https://api.github.com/repos/mjzffr/autophone/comments{/number}","issue_comment_url":"https://api.github.com/repos/mjzffr/autophone/issues/comments{/number}","contents_url":"https://api.github.com/repos/mjzffr/autophone/contents/{+path}","compare_url":"https://api.github.com/repos/mjzffr/autophone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mjzffr/autophone/merges","archive_url":"https://api.github.com/repos/mjzffr/autophone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mjzffr/autophone/downloads","issues_url":"https://api.github.com/repos/mjzffr/autophone/issues{/number}","pulls_url":"https://api.github.com/repos/mjzffr/autophone/pulls{/number}","milestones_url":"https://api.github.com/repos/mjzffr/autophone/milestones{/number}","notifications_url":"https://api.github.com/repos/mjzffr/autophone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mjzffr/autophone/labels{/name}","releases_url":"https://api.github.com/repos/mjzffr/autophone/releases{/id}","created_at":"2015-06-08T17:33:05Z","updated_at":"2015-06-08T17:33:05Z","pushed_at":"2015-06-08T17:55:34Z","git_url":"git://github.com/mjzffr/autophone.git","ssh_url":"git@github.com:mjzffr/autophone.git","clone_url":"https://github.com/mjzffr/autophone.git","svn_url":"https://github.com/mjzffr/autophone","homepage":"https://wiki.mozilla.org/Auto-tools/Projects/Autophone","size":1673,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mozilla:master","ref":"master","sha":"e4f1f859a1f2781cdc55370f1fe940ec4923baf8","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":3504257,"name":"autophone","full_name":"mozilla/autophone","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/autophone","description":"Mobile-device manager for automated-test frameworks","fork":false,"url":"https://api.github.com/repos/mozilla/autophone","forks_url":"https://api.github.com/repos/mozilla/autophone/forks","keys_url":"https://api.github.com/repos/mozilla/autophone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/autophone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/autophone/teams","hooks_url":"https://api.github.com/repos/mozilla/autophone/hooks","issue_events_url":"https://api.github.com/repos/mozilla/autophone/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/autophone/events","assignees_url":"https://api.github.com/repos/mozilla/autophone/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/autophone/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/autophone/tags","blobs_url":"https://api.github.com/repos/mozilla/autophone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/autophone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/autophone/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/autophone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/autophone/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/autophone/languages","stargazers_url":"https://api.github.com/repos/mozilla/autophone/stargazers","contributors_url":"https://api.github.com/repos/mozilla/autophone/contributors","subscribers_url":"https://api.github.com/repos/mozilla/autophone/subscribers","subscription_url":"https://api.github.com/repos/mozilla/autophone/subscription","commits_url":"https://api.github.com/repos/mozilla/autophone/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/autophone/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/autophone/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/autophone/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/autophone/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/autophone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/autophone/merges","archive_url":"https://api.github.com/repos/mozilla/autophone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/autophone/downloads","issues_url":"https://api.github.com/repos/mozilla/autophone/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/autophone/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/autophone/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/autophone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/autophone/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/autophone/releases{/id}","created_at":"2012-02-21T13:54:30Z","updated_at":"2015-05-07T05:40:47Z","pushed_at":"2015-06-08T13:08:13Z","git_url":"git://github.com/mozilla/autophone.git","ssh_url":"git@github.com:mozilla/autophone.git","clone_url":"https://github.com/mozilla/autophone.git","svn_url":"https://github.com/mozilla/autophone","homepage":"https://wiki.mozilla.org/Auto-tools/Projects/Autophone","size":1673,"stargazers_count":11,"watchers_count":11,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":7,"forks":10,"open_issues":7,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/autophone/pulls/35"},"html":{"href":"https://github.com/mozilla/autophone/pull/35"},"issue":{"href":"https://api.github.com/repos/mozilla/autophone/issues/35"},"comments":{"href":"https://api.github.com/repos/mozilla/autophone/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/autophone/pulls/35/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/autophone/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/autophone/pulls/35/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/autophone/statuses/711adae7515246e6ecfb3b55e46a8ab3e8d3361c"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":6,"deletions":2,"changed_files":1}}