{"action":"created","comment":{"url":"https://api.github.com/repos/grow/grow/pulls/comments/148311290","pull_request_review_id":73533619,"id":148311290,"diff_hunk":"@@ -62,10 +62,9 @@ def write(cls, path, content):\n                 pass\n             else:\n                 raise\n-        fp = cls.open(path, mode='w')\n-        fp.write(content)\n-        fp.close()\n-        return fp\n+        with cls.open(path, mode='w') as fp:\n+            fp.write(content)\n+            return fp","path":"grow/pods/storage/file_storage.py","position":10,"original_position":10,"commit_id":"5cdfa6fc19b1269e534699a2f5873fdb661a7bbb","original_commit_id":"5cdfa6fc19b1269e534699a2f5873fdb661a7bbb","user":{"login":"Zoramite","id":107076,"avatar_url":"https://avatars0.githubusercontent.com/u/107076?v=4","gravatar_id":"","url":"https://api.github.com/users/Zoramite","html_url":"https://github.com/Zoramite","followers_url":"https://api.github.com/users/Zoramite/followers","following_url":"https://api.github.com/users/Zoramite/following{/other_user}","gists_url":"https://api.github.com/users/Zoramite/gists{/gist_id}","starred_url":"https://api.github.com/users/Zoramite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zoramite/subscriptions","organizations_url":"https://api.github.com/users/Zoramite/orgs","repos_url":"https://api.github.com/users/Zoramite/repos","events_url":"https://api.github.com/users/Zoramite/events{/privacy}","received_events_url":"https://api.github.com/users/Zoramite/received_events","type":"User","site_admin":false},"body":"I agree, I'll remove it and see if it causes any issues.","created_at":"2017-11-01T16:30:36Z","updated_at":"2017-11-01T16:30:36Z","html_url":"https://github.com/grow/grow/pull/622#discussion_r148311290","pull_request_url":"https://api.github.com/repos/grow/grow/pulls/622","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/grow/grow/pulls/comments/148311290"},"html":{"href":"https://github.com/grow/grow/pull/622#discussion_r148311290"},"pull_request":{"href":"https://api.github.com/repos/grow/grow/pulls/622"}},"in_reply_to_id":148304658},"pull_request":{"url":"https://api.github.com/repos/grow/grow/pulls/622","id":150076665,"html_url":"https://github.com/grow/grow/pull/622","diff_url":"https://github.com/grow/grow/pull/622.diff","patch_url":"https://github.com/grow/grow/pull/622.patch","issue_url":"https://api.github.com/repos/grow/grow/issues/622","number":622,"state":"open","locked":false,"title":"Improving the local file deployment by using copy instead of read/write.","user":{"login":"Zoramite","id":107076,"avatar_url":"https://avatars0.githubusercontent.com/u/107076?v=4","gravatar_id":"","url":"https://api.github.com/users/Zoramite","html_url":"https://github.com/Zoramite","followers_url":"https://api.github.com/users/Zoramite/followers","following_url":"https://api.github.com/users/Zoramite/following{/other_user}","gists_url":"https://api.github.com/users/Zoramite/gists{/gist_id}","starred_url":"https://api.github.com/users/Zoramite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zoramite/subscriptions","organizations_url":"https://api.github.com/users/Zoramite/orgs","repos_url":"https://api.github.com/users/Zoramite/repos","events_url":"https://api.github.com/users/Zoramite/events{/privacy}","received_events_url":"https://api.github.com/users/Zoramite/received_events","type":"User","site_admin":false},"body":"Great improvement for local deployments.\r\n\r\nWith read/write deployment: `Deploying: 4457/4457 (in 0:01:00.1)`\r\nWith copy deployment: `Deploying: 4457/4457 (in 0:00:01.1)`\r\n\r\n🚀 \r\n\r\nFixes #618 ","created_at":"2017-11-01T16:04:42Z","updated_at":"2017-11-01T16:30:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3b7a5c57d656c1c868a1937c396cadb067c061ce","assignee":{"login":"Zoramite","id":107076,"avatar_url":"https://avatars0.githubusercontent.com/u/107076?v=4","gravatar_id":"","url":"https://api.github.com/users/Zoramite","html_url":"https://github.com/Zoramite","followers_url":"https://api.github.com/users/Zoramite/followers","following_url":"https://api.github.com/users/Zoramite/following{/other_user}","gists_url":"https://api.github.com/users/Zoramite/gists{/gist_id}","starred_url":"https://api.github.com/users/Zoramite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zoramite/subscriptions","organizations_url":"https://api.github.com/users/Zoramite/orgs","repos_url":"https://api.github.com/users/Zoramite/repos","events_url":"https://api.github.com/users/Zoramite/events{/privacy}","received_events_url":"https://api.github.com/users/Zoramite/received_events","type":"User","site_admin":false},"assignees":[{"login":"Zoramite","id":107076,"avatar_url":"https://avatars0.githubusercontent.com/u/107076?v=4","gravatar_id":"","url":"https://api.github.com/users/Zoramite","html_url":"https://github.com/Zoramite","followers_url":"https://api.github.com/users/Zoramite/followers","following_url":"https://api.github.com/users/Zoramite/following{/other_user}","gists_url":"https://api.github.com/users/Zoramite/gists{/gist_id}","starred_url":"https://api.github.com/users/Zoramite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zoramite/subscriptions","organizations_url":"https://api.github.com/users/Zoramite/orgs","repos_url":"https://api.github.com/users/Zoramite/repos","events_url":"https://api.github.com/users/Zoramite/events{/privacy}","received_events_url":"https://api.github.com/users/Zoramite/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"jeremydw","id":646525,"avatar_url":"https://avatars3.githubusercontent.com/u/646525?v=4","gravatar_id":"","url":"https://api.github.com/users/jeremydw","html_url":"https://github.com/jeremydw","followers_url":"https://api.github.com/users/jeremydw/followers","following_url":"https://api.github.com/users/jeremydw/following{/other_user}","gists_url":"https://api.github.com/users/jeremydw/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremydw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremydw/subscriptions","organizations_url":"https://api.github.com/users/jeremydw/orgs","repos_url":"https://api.github.com/users/jeremydw/repos","events_url":"https://api.github.com/users/jeremydw/events{/privacy}","received_events_url":"https://api.github.com/users/jeremydw/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/grow/grow/milestones/33","html_url":"https://github.com/grow/grow/milestone/33","labels_url":"https://api.github.com/repos/grow/grow/milestones/33/labels","id":2828403,"number":33,"title":"0.3.10","description":"","creator":{"login":"Zoramite","id":107076,"avatar_url":"https://avatars0.githubusercontent.com/u/107076?v=4","gravatar_id":"","url":"https://api.github.com/users/Zoramite","html_url":"https://github.com/Zoramite","followers_url":"https://api.github.com/users/Zoramite/followers","following_url":"https://api.github.com/users/Zoramite/following{/other_user}","gists_url":"https://api.github.com/users/Zoramite/gists{/gist_id}","starred_url":"https://api.github.com/users/Zoramite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zoramite/subscriptions","organizations_url":"https://api.github.com/users/Zoramite/orgs","repos_url":"https://api.github.com/users/Zoramite/repos","events_url":"https://api.github.com/users/Zoramite/events{/privacy}","received_events_url":"https://api.github.com/users/Zoramite/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":3,"state":"open","created_at":"2017-10-10T18:55:29Z","updated_at":"2017-11-01T16:04:43Z","due_on":"2017-11-02T07:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/grow/grow/pulls/622/commits","review_comments_url":"https://api.github.com/repos/grow/grow/pulls/622/comments","review_comment_url":"https://api.github.com/repos/grow/grow/pulls/comments{/number}","comments_url":"https://api.github.com/repos/grow/grow/issues/622/comments","statuses_url":"https://api.github.com/repos/grow/grow/statuses/5cdfa6fc19b1269e534699a2f5873fdb661a7bbb","head":{"label":"grow:feature/local-deploy-opt","ref":"feature/local-deploy-opt","sha":"5cdfa6fc19b1269e534699a2f5873fdb661a7bbb","user":{"login":"grow","id":5324394,"avatar_url":"https://avatars3.githubusercontent.com/u/5324394?v=4","gravatar_id":"","url":"https://api.github.com/users/grow","html_url":"https://github.com/grow","followers_url":"https://api.github.com/users/grow/followers","following_url":"https://api.github.com/users/grow/following{/other_user}","gists_url":"https://api.github.com/users/grow/gists{/gist_id}","starred_url":"https://api.github.com/users/grow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grow/subscriptions","organizations_url":"https://api.github.com/users/grow/orgs","repos_url":"https://api.github.com/users/grow/repos","events_url":"https://api.github.com/users/grow/events{/privacy}","received_events_url":"https://api.github.com/users/grow/received_events","type":"Organization","site_admin":false},"repo":{"id":12899663,"name":"grow","full_name":"grow/grow","owner":{"login":"grow","id":5324394,"avatar_url":"https://avatars3.githubusercontent.com/u/5324394?v=4","gravatar_id":"","url":"https://api.github.com/users/grow","html_url":"https://github.com/grow","followers_url":"https://api.github.com/users/grow/followers","following_url":"https://api.github.com/users/grow/following{/other_user}","gists_url":"https://api.github.com/users/grow/gists{/gist_id}","starred_url":"https://api.github.com/users/grow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grow/subscriptions","organizations_url":"https://api.github.com/users/grow/orgs","repos_url":"https://api.github.com/users/grow/repos","events_url":"https://api.github.com/users/grow/events{/privacy}","received_events_url":"https://api.github.com/users/grow/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/grow/grow","description":"A fresh, declarative, file-based microsite generator for rapid, high-quality website production.","fork":false,"url":"https://api.github.com/repos/grow/grow","forks_url":"https://api.github.com/repos/grow/grow/forks","keys_url":"https://api.github.com/repos/grow/grow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/grow/grow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/grow/grow/teams","hooks_url":"https://api.github.com/repos/grow/grow/hooks","issue_events_url":"https://api.github.com/repos/grow/grow/issues/events{/number}","events_url":"https://api.github.com/repos/grow/grow/events","assignees_url":"https://api.github.com/repos/grow/grow/assignees{/user}","branches_url":"https://api.github.com/repos/grow/grow/branches{/branch}","tags_url":"https://api.github.com/repos/grow/grow/tags","blobs_url":"https://api.github.com/repos/grow/grow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/grow/grow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/grow/grow/git/refs{/sha}","trees_url":"https://api.github.com/repos/grow/grow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/grow/grow/statuses/{sha}","languages_url":"https://api.github.com/repos/grow/grow/languages","stargazers_url":"https://api.github.com/repos/grow/grow/stargazers","contributors_url":"https://api.github.com/repos/grow/grow/contributors","subscribers_url":"https://api.github.com/repos/grow/grow/subscribers","subscription_url":"https://api.github.com/repos/grow/grow/subscription","commits_url":"https://api.github.com/repos/grow/grow/commits{/sha}","git_commits_url":"https://api.github.com/repos/grow/grow/git/commits{/sha}","comments_url":"https://api.github.com/repos/grow/grow/comments{/number}","issue_comment_url":"https://api.github.com/repos/grow/grow/issues/comments{/number}","contents_url":"https://api.github.com/repos/grow/grow/contents/{+path}","compare_url":"https://api.github.com/repos/grow/grow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/grow/grow/merges","archive_url":"https://api.github.com/repos/grow/grow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/grow/grow/downloads","issues_url":"https://api.github.com/repos/grow/grow/issues{/number}","pulls_url":"https://api.github.com/repos/grow/grow/pulls{/number}","milestones_url":"https://api.github.com/repos/grow/grow/milestones{/number}","notifications_url":"https://api.github.com/repos/grow/grow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/grow/grow/labels{/name}","releases_url":"https://api.github.com/repos/grow/grow/releases{/id}","deployments_url":"https://api.github.com/repos/grow/grow/deployments","created_at":"2013-09-17T15:51:40Z","updated_at":"2017-10-27T21:39:25Z","pushed_at":"2017-11-01T16:04:43Z","git_url":"git://github.com/grow/grow.git","ssh_url":"git@github.com:grow/grow.git","clone_url":"https://github.com/grow/grow.git","svn_url":"https://github.com/grow/grow","homepage":"https://grow.io","size":8214,"stargazers_count":205,"watchers_count":205,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":31,"mirror_url":null,"archived":false,"open_issues_count":76,"forks":31,"open_issues":76,"watchers":205,"default_branch":"master"}},"base":{"label":"grow:master","ref":"master","sha":"c1c061e9148252dfdacbc89fd3d486881da55016","user":{"login":"grow","id":5324394,"avatar_url":"https://avatars3.githubusercontent.com/u/5324394?v=4","gravatar_id":"","url":"https://api.github.com/users/grow","html_url":"https://github.com/grow","followers_url":"https://api.github.com/users/grow/followers","following_url":"https://api.github.com/users/grow/following{/other_user}","gists_url":"https://api.github.com/users/grow/gists{/gist_id}","starred_url":"https://api.github.com/users/grow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grow/subscriptions","organizations_url":"https://api.github.com/users/grow/orgs","repos_url":"https://api.github.com/users/grow/repos","events_url":"https://api.github.com/users/grow/events{/privacy}","received_events_url":"https://api.github.com/users/grow/received_events","type":"Organization","site_admin":false},"repo":{"id":12899663,"name":"grow","full_name":"grow/grow","owner":{"login":"grow","id":5324394,"avatar_url":"https://avatars3.githubusercontent.com/u/5324394?v=4","gravatar_id":"","url":"https://api.github.com/users/grow","html_url":"https://github.com/grow","followers_url":"https://api.github.com/users/grow/followers","following_url":"https://api.github.com/users/grow/following{/other_user}","gists_url":"https://api.github.com/users/grow/gists{/gist_id}","starred_url":"https://api.github.com/users/grow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grow/subscriptions","organizations_url":"https://api.github.com/users/grow/orgs","repos_url":"https://api.github.com/users/grow/repos","events_url":"https://api.github.com/users/grow/events{/privacy}","received_events_url":"https://api.github.com/users/grow/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/grow/grow","description":"A fresh, declarative, file-based microsite generator for rapid, high-quality website production.","fork":false,"url":"https://api.github.com/repos/grow/grow","forks_url":"https://api.github.com/repos/grow/grow/forks","keys_url":"https://api.github.com/repos/grow/grow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/grow/grow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/grow/grow/teams","hooks_url":"https://api.github.com/repos/grow/grow/hooks","issue_events_url":"https://api.github.com/repos/grow/grow/issues/events{/number}","events_url":"https://api.github.com/repos/grow/grow/events","assignees_url":"https://api.github.com/repos/grow/grow/assignees{/user}","branches_url":"https://api.github.com/repos/grow/grow/branches{/branch}","tags_url":"https://api.github.com/repos/grow/grow/tags","blobs_url":"https://api.github.com/repos/grow/grow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/grow/grow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/grow/grow/git/refs{/sha}","trees_url":"https://api.github.com/repos/grow/grow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/grow/grow/statuses/{sha}","languages_url":"https://api.github.com/repos/grow/grow/languages","stargazers_url":"https://api.github.com/repos/grow/grow/stargazers","contributors_url":"https://api.github.com/repos/grow/grow/contributors","subscribers_url":"https://api.github.com/repos/grow/grow/subscribers","subscription_url":"https://api.github.com/repos/grow/grow/subscription","commits_url":"https://api.github.com/repos/grow/grow/commits{/sha}","git_commits_url":"https://api.github.com/repos/grow/grow/git/commits{/sha}","comments_url":"https://api.github.com/repos/grow/grow/comments{/number}","issue_comment_url":"https://api.github.com/repos/grow/grow/issues/comments{/number}","contents_url":"https://api.github.com/repos/grow/grow/contents/{+path}","compare_url":"https://api.github.com/repos/grow/grow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/grow/grow/merges","archive_url":"https://api.github.com/repos/grow/grow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/grow/grow/downloads","issues_url":"https://api.github.com/repos/grow/grow/issues{/number}","pulls_url":"https://api.github.com/repos/grow/grow/pulls{/number}","milestones_url":"https://api.github.com/repos/grow/grow/milestones{/number}","notifications_url":"https://api.github.com/repos/grow/grow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/grow/grow/labels{/name}","releases_url":"https://api.github.com/repos/grow/grow/releases{/id}","deployments_url":"https://api.github.com/repos/grow/grow/deployments","created_at":"2013-09-17T15:51:40Z","updated_at":"2017-10-27T21:39:25Z","pushed_at":"2017-11-01T16:04:43Z","git_url":"git://github.com/grow/grow.git","ssh_url":"git@github.com:grow/grow.git","clone_url":"https://github.com/grow/grow.git","svn_url":"https://github.com/grow/grow","homepage":"https://grow.io","size":8214,"stargazers_count":205,"watchers_count":205,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":31,"mirror_url":null,"archived":false,"open_issues_count":76,"forks":31,"open_issues":76,"watchers":205,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/grow/grow/pulls/622"},"html":{"href":"https://github.com/grow/grow/pull/622"},"issue":{"href":"https://api.github.com/repos/grow/grow/issues/622"},"comments":{"href":"https://api.github.com/repos/grow/grow/issues/622/comments"},"review_comments":{"href":"https://api.github.com/repos/grow/grow/pulls/622/comments"},"review_comment":{"href":"https://api.github.com/repos/grow/grow/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/grow/grow/pulls/622/commits"},"statuses":{"href":"https://api.github.com/repos/grow/grow/statuses/5cdfa6fc19b1269e534699a2f5873fdb661a7bbb"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Zoramite"}}