{"action":"created","comment":{"url":"https://api.github.com/repos/SiCKRAGETV/SickRage/pulls/comments/44080141","id":44080141,"diff_hunk":"@@ -1661,7 +1654,7 @@ def setStatus(self, show=None, eps=None, status=None, direct=False):\n             else:\n                 return self._genericMessage(\"Error\", errMsg)\n \n-        if not statusStrings.has_key(int(status)):\n+        if int(status) not in statusStrings:","path":"sickbeard/webserve.py","position":189,"original_position":189,"commit_id":"d87ef3dbb1f83c642b66c782dd6f846332ce745c","original_commit_id":"d87ef3dbb1f83c642b66c782dd6f846332ce745c","user":{"login":"miigotu","id":390379,"avatar_url":"https://avatars.githubusercontent.com/u/390379?v=3","gravatar_id":"","url":"https://api.github.com/users/miigotu","html_url":"https://github.com/miigotu","followers_url":"https://api.github.com/users/miigotu/followers","following_url":"https://api.github.com/users/miigotu/following{/other_user}","gists_url":"https://api.github.com/users/miigotu/gists{/gist_id}","starred_url":"https://api.github.com/users/miigotu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miigotu/subscriptions","organizations_url":"https://api.github.com/users/miigotu/orgs","repos_url":"https://api.github.com/users/miigotu/repos","events_url":"https://api.github.com/users/miigotu/events{/privacy}","received_events_url":"https://api.github.com/users/miigotu/received_events","type":"User","site_admin":false},"body":"This one has to stay this way, we override has_key for the statusStrings in common.py L544","created_at":"2015-11-05T22:36:27Z","updated_at":"2015-11-05T22:36:27Z","html_url":"https://github.com/SiCKRAGETV/SickRage/pull/3099#discussion_r44080141","pull_request_url":"https://api.github.com/repos/SiCKRAGETV/SickRage/pulls/3099","_links":{"self":{"href":"https://api.github.com/repos/SiCKRAGETV/SickRage/pulls/comments/44080141"},"html":{"href":"https://github.com/SiCKRAGETV/SickRage/pull/3099#discussion_r44080141"},"pull_request":{"href":"https://api.github.com/repos/SiCKRAGETV/SickRage/pulls/3099"}}},"pull_request":{"url":"https://api.github.com/repos/SiCKRAGETV/SickRage/pulls/3099","id":49886146,"html_url":"https://github.com/SiCKRAGETV/SickRage/pull/3099","diff_url":"https://github.com/SiCKRAGETV/SickRage/pull/3099.diff","patch_url":"https://github.com/SiCKRAGETV/SickRage/pull/3099.patch","issue_url":"https://api.github.com/repos/SiCKRAGETV/SickRage/issues/3099","number":3099,"state":"open","locked":false,"title":"Update webserve.py for PEPs 8, 203, 257 and 263 and streamline dict/list creation","user":{"login":"labrys","id":1867464,"avatar_url":"https://avatars.githubusercontent.com/u/1867464?v=3","gravatar_id":"","url":"https://api.github.com/users/labrys","html_url":"https://github.com/labrys","followers_url":"https://api.github.com/users/labrys/followers","following_url":"https://api.github.com/users/labrys/following{/other_user}","gists_url":"https://api.github.com/users/labrys/gists{/gist_id}","starred_url":"https://api.github.com/users/labrys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/labrys/subscriptions","organizations_url":"https://api.github.com/users/labrys/orgs","repos_url":"https://api.github.com/users/labrys/repos","events_url":"https://api.github.com/users/labrys/events{/privacy}","received_events_url":"https://api.github.com/users/labrys/received_events","type":"User","site_admin":false},"body":"##### Code changes:\r\n- f9a880c PEP 0008: Change deprecated '.has_key()' to 'in'\t\r\n- 81de546 PEP 0008: Convert comparisons\t\r\n- 2a15eb8 PEP 0203: Replace assignment with augmented assignment\t\r\n- d87ef3d Streamline dict and list creation\t\r\n\r\n##### Formatting changes:\r\n- a4bf5d0 PEP 0008: Add/remove lines and whitespace for consistency\r\n- daae720 PEP 0257: Convert docstrings to triple double-quoted docstrings\t\r\n- 3f2d776 PEP 0263: Add encoding declaration\t\r\n- 27d1c36 Remove redundant parentheses\t","created_at":"2015-11-05T21:52:30Z","updated_at":"2015-11-05T22:36:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"94d1d2bd4f3c12d132c2d7dbb0b0495816718bbf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SiCKRAGETV/SickRage/pulls/3099/commits","review_comments_url":"https://api.github.com/repos/SiCKRAGETV/SickRage/pulls/3099/comments","review_comment_url":"https://api.github.com/repos/SiCKRAGETV/SickRage/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SiCKRAGETV/SickRage/issues/3099/comments","statuses_url":"https://api.github.com/repos/SiCKRAGETV/SickRage/statuses/d87ef3dbb1f83c642b66c782dd6f846332ce745c","head":{"label":"labrys:pep8-webserve","ref":"pep8-webserve","sha":"d87ef3dbb1f83c642b66c782dd6f846332ce745c","user":{"login":"labrys","id":1867464,"avatar_url":"https://avatars.githubusercontent.com/u/1867464?v=3","gravatar_id":"","url":"https://api.github.com/users/labrys","html_url":"https://github.com/labrys","followers_url":"https://api.github.com/users/labrys/followers","following_url":"https://api.github.com/users/labrys/following{/other_user}","gists_url":"https://api.github.com/users/labrys/gists{/gist_id}","starred_url":"https://api.github.com/users/labrys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/labrys/subscriptions","organizations_url":"https://api.github.com/users/labrys/orgs","repos_url":"https://api.github.com/users/labrys/repos","events_url":"https://api.github.com/users/labrys/events{/privacy}","received_events_url":"https://api.github.com/users/labrys/received_events","type":"User","site_admin":false},"repo":{"id":44844547,"name":"SickRage","full_name":"labrys/SickRage","owner":{"login":"labrys","id":1867464,"avatar_url":"https://avatars.githubusercontent.com/u/1867464?v=3","gravatar_id":"","url":"https://api.github.com/users/labrys","html_url":"https://github.com/labrys","followers_url":"https://api.github.com/users/labrys/followers","following_url":"https://api.github.com/users/labrys/following{/other_user}","gists_url":"https://api.github.com/users/labrys/gists{/gist_id}","starred_url":"https://api.github.com/users/labrys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/labrys/subscriptions","organizations_url":"https://api.github.com/users/labrys/orgs","repos_url":"https://api.github.com/users/labrys/repos","events_url":"https://api.github.com/users/labrys/events{/privacy}","received_events_url":"https://api.github.com/users/labrys/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/labrys/SickRage","description":"SickRage - Searches TheTVDB for shows","fork":true,"url":"https://api.github.com/repos/labrys/SickRage","forks_url":"https://api.github.com/repos/labrys/SickRage/forks","keys_url":"https://api.github.com/repos/labrys/SickRage/keys{/key_id}","collaborators_url":"https://api.github.com/repos/labrys/SickRage/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/labrys/SickRage/teams","hooks_url":"https://api.github.com/repos/labrys/SickRage/hooks","issue_events_url":"https://api.github.com/repos/labrys/SickRage/issues/events{/number}","events_url":"https://api.github.com/repos/labrys/SickRage/events","assignees_url":"https://api.github.com/repos/labrys/SickRage/assignees{/user}","branches_url":"https://api.github.com/repos/labrys/SickRage/branches{/branch}","tags_url":"https://api.github.com/repos/labrys/SickRage/tags","blobs_url":"https://api.github.com/repos/labrys/SickRage/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/labrys/SickRage/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/labrys/SickRage/git/refs{/sha}","trees_url":"https://api.github.com/repos/labrys/SickRage/git/trees{/sha}","statuses_url":"https://api.github.com/repos/labrys/SickRage/statuses/{sha}","languages_url":"https://api.github.com/repos/labrys/SickRage/languages","stargazers_url":"https://api.github.com/repos/labrys/SickRage/stargazers","contributors_url":"https://api.github.com/repos/labrys/SickRage/contributors","subscribers_url":"https://api.github.com/repos/labrys/SickRage/subscribers","subscription_url":"https://api.github.com/repos/labrys/SickRage/subscription","commits_url":"https://api.github.com/repos/labrys/SickRage/commits{/sha}","git_commits_url":"https://api.github.com/repos/labrys/SickRage/git/commits{/sha}","comments_url":"https://api.github.com/repos/labrys/SickRage/comments{/number}","issue_comment_url":"https://api.github.com/repos/labrys/SickRage/issues/comments{/number}","contents_url":"https://api.github.com/repos/labrys/SickRage/contents/{+path}","compare_url":"https://api.github.com/repos/labrys/SickRage/compare/{base}...{head}","merges_url":"https://api.github.com/repos/labrys/SickRage/merges","archive_url":"https://api.github.com/repos/labrys/SickRage/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/labrys/SickRage/downloads","issues_url":"https://api.github.com/repos/labrys/SickRage/issues{/number}","pulls_url":"https://api.github.com/repos/labrys/SickRage/pulls{/number}","milestones_url":"https://api.github.com/repos/labrys/SickRage/milestones{/number}","notifications_url":"https://api.github.com/repos/labrys/SickRage/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/labrys/SickRage/labels{/name}","releases_url":"https://api.github.com/repos/labrys/SickRage/releases{/id}","created_at":"2015-10-23T23:55:02Z","updated_at":"2015-10-23T23:55:13Z","pushed_at":"2015-11-05T21:44:38Z","git_url":"git://github.com/labrys/SickRage.git","ssh_url":"git@github.com:labrys/SickRage.git","clone_url":"https://github.com/labrys/SickRage.git","svn_url":"https://github.com/labrys/SickRage","homepage":"http://www.sickrage.tv/","size":40247,"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":"SiCKRAGETV:develop","ref":"develop","sha":"6660749bf0c5f90b8450b4547d59ed49e3508b0d","user":{"login":"SiCKRAGETV","id":9251163,"avatar_url":"https://avatars.githubusercontent.com/u/9251163?v=3","gravatar_id":"","url":"https://api.github.com/users/SiCKRAGETV","html_url":"https://github.com/SiCKRAGETV","followers_url":"https://api.github.com/users/SiCKRAGETV/followers","following_url":"https://api.github.com/users/SiCKRAGETV/following{/other_user}","gists_url":"https://api.github.com/users/SiCKRAGETV/gists{/gist_id}","starred_url":"https://api.github.com/users/SiCKRAGETV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SiCKRAGETV/subscriptions","organizations_url":"https://api.github.com/users/SiCKRAGETV/orgs","repos_url":"https://api.github.com/users/SiCKRAGETV/repos","events_url":"https://api.github.com/users/SiCKRAGETV/events{/privacy}","received_events_url":"https://api.github.com/users/SiCKRAGETV/received_events","type":"Organization","site_admin":false},"repo":{"id":17582613,"name":"SickRage","full_name":"SiCKRAGETV/SickRage","owner":{"login":"SiCKRAGETV","id":9251163,"avatar_url":"https://avatars.githubusercontent.com/u/9251163?v=3","gravatar_id":"","url":"https://api.github.com/users/SiCKRAGETV","html_url":"https://github.com/SiCKRAGETV","followers_url":"https://api.github.com/users/SiCKRAGETV/followers","following_url":"https://api.github.com/users/SiCKRAGETV/following{/other_user}","gists_url":"https://api.github.com/users/SiCKRAGETV/gists{/gist_id}","starred_url":"https://api.github.com/users/SiCKRAGETV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SiCKRAGETV/subscriptions","organizations_url":"https://api.github.com/users/SiCKRAGETV/orgs","repos_url":"https://api.github.com/users/SiCKRAGETV/repos","events_url":"https://api.github.com/users/SiCKRAGETV/events{/privacy}","received_events_url":"https://api.github.com/users/SiCKRAGETV/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SiCKRAGETV/SickRage","description":"SickRage - Searches TheTVDB for shows","fork":false,"url":"https://api.github.com/repos/SiCKRAGETV/SickRage","forks_url":"https://api.github.com/repos/SiCKRAGETV/SickRage/forks","keys_url":"https://api.github.com/repos/SiCKRAGETV/SickRage/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SiCKRAGETV/SickRage/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SiCKRAGETV/SickRage/teams","hooks_url":"https://api.github.com/repos/SiCKRAGETV/SickRage/hooks","issue_events_url":"https://api.github.com/repos/SiCKRAGETV/SickRage/issues/events{/number}","events_url":"https://api.github.com/repos/SiCKRAGETV/SickRage/events","assignees_url":"https://api.github.com/repos/SiCKRAGETV/SickRage/assignees{/user}","branches_url":"https://api.github.com/repos/SiCKRAGETV/SickRage/branches{/branch}","tags_url":"https://api.github.com/repos/SiCKRAGETV/SickRage/tags","blobs_url":"https://api.github.com/repos/SiCKRAGETV/SickRage/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SiCKRAGETV/SickRage/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SiCKRAGETV/SickRage/git/refs{/sha}","trees_url":"https://api.github.com/repos/SiCKRAGETV/SickRage/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SiCKRAGETV/SickRage/statuses/{sha}","languages_url":"https://api.github.com/repos/SiCKRAGETV/SickRage/languages","stargazers_url":"https://api.github.com/repos/SiCKRAGETV/SickRage/stargazers","contributors_url":"https://api.github.com/repos/SiCKRAGETV/SickRage/contributors","subscribers_url":"https://api.github.com/repos/SiCKRAGETV/SickRage/subscribers","subscription_url":"https://api.github.com/repos/SiCKRAGETV/SickRage/subscription","commits_url":"https://api.github.com/repos/SiCKRAGETV/SickRage/commits{/sha}","git_commits_url":"https://api.github.com/repos/SiCKRAGETV/SickRage/git/commits{/sha}","comments_url":"https://api.github.com/repos/SiCKRAGETV/SickRage/comments{/number}","issue_comment_url":"https://api.github.com/repos/SiCKRAGETV/SickRage/issues/comments{/number}","contents_url":"https://api.github.com/repos/SiCKRAGETV/SickRage/contents/{+path}","compare_url":"https://api.github.com/repos/SiCKRAGETV/SickRage/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SiCKRAGETV/SickRage/merges","archive_url":"https://api.github.com/repos/SiCKRAGETV/SickRage/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SiCKRAGETV/SickRage/downloads","issues_url":"https://api.github.com/repos/SiCKRAGETV/SickRage/issues{/number}","pulls_url":"https://api.github.com/repos/SiCKRAGETV/SickRage/pulls{/number}","milestones_url":"https://api.github.com/repos/SiCKRAGETV/SickRage/milestones{/number}","notifications_url":"https://api.github.com/repos/SiCKRAGETV/SickRage/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SiCKRAGETV/SickRage/labels{/name}","releases_url":"https://api.github.com/repos/SiCKRAGETV/SickRage/releases{/id}","created_at":"2014-03-10T05:20:31Z","updated_at":"2015-11-05T03:05:04Z","pushed_at":"2015-11-05T22:34:20Z","git_url":"git://github.com/SiCKRAGETV/SickRage.git","ssh_url":"git@github.com:SiCKRAGETV/SickRage.git","clone_url":"https://github.com/SiCKRAGETV/SickRage.git","svn_url":"https://github.com/SiCKRAGETV/SickRage","homepage":"http://www.sickrage.tv/","size":115558,"stargazers_count":1294,"watchers_count":1294,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":766,"mirror_url":null,"open_issues_count":13,"forks":766,"open_issues":13,"watchers":1294,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SiCKRAGETV/SickRage/pulls/3099"},"html":{"href":"https://github.com/SiCKRAGETV/SickRage/pull/3099"},"issue":{"href":"https://api.github.com/repos/SiCKRAGETV/SickRage/issues/3099"},"comments":{"href":"https://api.github.com/repos/SiCKRAGETV/SickRage/issues/3099/comments"},"review_comments":{"href":"https://api.github.com/repos/SiCKRAGETV/SickRage/pulls/3099/comments"},"review_comment":{"href":"https://api.github.com/repos/SiCKRAGETV/SickRage/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SiCKRAGETV/SickRage/pulls/3099/commits"},"statuses":{"href":"https://api.github.com/repos/SiCKRAGETV/SickRage/statuses/d87ef3dbb1f83c642b66c782dd6f846332ce745c"}}}}