{"action":"created","issue":{"url":"https://api.github.com/repos/powderblock/PyDankReddit/issues/30","labels_url":"https://api.github.com/repos/powderblock/PyDankReddit/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/powderblock/PyDankReddit/issues/30/comments","events_url":"https://api.github.com/repos/powderblock/PyDankReddit/issues/30/events","html_url":"https://github.com/powderblock/PyDankReddit/issues/30","id":54666126,"number":30,"title":"File modes should be more strict","user":{"login":"porglezomp","id":1690225,"avatar_url":"https://avatars.githubusercontent.com/u/1690225?v=3","gravatar_id":"","url":"https://api.github.com/users/porglezomp","html_url":"https://github.com/porglezomp","followers_url":"https://api.github.com/users/porglezomp/followers","following_url":"https://api.github.com/users/porglezomp/following{/other_user}","gists_url":"https://api.github.com/users/porglezomp/gists{/gist_id}","starred_url":"https://api.github.com/users/porglezomp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/porglezomp/subscriptions","organizations_url":"https://api.github.com/users/porglezomp/orgs","repos_url":"https://api.github.com/users/porglezomp/repos","events_url":"https://api.github.com/users/porglezomp/events{/privacy}","received_events_url":"https://api.github.com/users/porglezomp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-17T16:19:10Z","updated_at":"2015-01-17T18:30:29Z","closed_at":null,"body":"Files should be opened using a mode that indicates what's going to be done with them.\r\nA large offender that I found immediately as I started looking as lines `35-38`, which contain `\"a+\"` when the only thing that's being done with the file is reading from it.\r\n\r\nIn general, use the most restrictive possible format that you can. (`\"r\"` for something you only read from, `\"a\"` if you're appending but not reading, etc.)"},"comment":{"url":"https://api.github.com/repos/powderblock/PyDankReddit/issues/comments/70378160","html_url":"https://github.com/powderblock/PyDankReddit/issues/30#issuecomment-70378160","issue_url":"https://api.github.com/repos/powderblock/PyDankReddit/issues/30","id":70378160,"user":{"login":"powderblock","id":1458607,"avatar_url":"https://avatars.githubusercontent.com/u/1458607?v=3","gravatar_id":"","url":"https://api.github.com/users/powderblock","html_url":"https://github.com/powderblock","followers_url":"https://api.github.com/users/powderblock/followers","following_url":"https://api.github.com/users/powderblock/following{/other_user}","gists_url":"https://api.github.com/users/powderblock/gists{/gist_id}","starred_url":"https://api.github.com/users/powderblock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/powderblock/subscriptions","organizations_url":"https://api.github.com/users/powderblock/orgs","repos_url":"https://api.github.com/users/powderblock/repos","events_url":"https://api.github.com/users/powderblock/events{/privacy}","received_events_url":"https://api.github.com/users/powderblock/received_events","type":"User","site_admin":false},"created_at":"2015-01-17T18:30:29Z","updated_at":"2015-01-17T18:30:29Z","body":"a+ in lines 35-38 is done as a way to create those files if they don't exist. This will later be required for #12.  \r\n\r\nIs there a better way to do this? If so, how?"}}