{"action":"closed","number":9,"pull_request":{"url":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/pulls/9","id":29018278,"html_url":"https://github.com/NYTimes/collectd-rabbitmq/pull/9","diff_url":"https://github.com/NYTimes/collectd-rabbitmq/pull/9.diff","patch_url":"https://github.com/NYTimes/collectd-rabbitmq/pull/9.patch","issue_url":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/issues/9","number":9,"state":"closed","locked":false,"title":"Make rabbitmq.py more pythonic","user":{"login":"drwahl","id":1279198,"avatar_url":"https://avatars.githubusercontent.com/u/1279198?v=3","gravatar_id":"","url":"https://api.github.com/users/drwahl","html_url":"https://github.com/drwahl","followers_url":"https://api.github.com/users/drwahl/followers","following_url":"https://api.github.com/users/drwahl/following{/other_user}","gists_url":"https://api.github.com/users/drwahl/gists{/gist_id}","starred_url":"https://api.github.com/users/drwahl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drwahl/subscriptions","organizations_url":"https://api.github.com/users/drwahl/orgs","repos_url":"https://api.github.com/users/drwahl/repos","events_url":"https://api.github.com/users/drwahl/events{/privacy}","received_events_url":"https://api.github.com/users/drwahl/received_events","type":"User","site_admin":false},"body":"This PR includes modifications to rabbitmq.py that make it more pythonic by following styleguide compliance (pyflake, flake8, pep8) and by making the code easier to read by de-duplicating calls and making variable instantiation more explicit in some cases.","created_at":"2015-02-10T15:56:25Z","updated_at":"2015-02-10T19:05:09Z","closed_at":"2015-02-10T19:05:09Z","merged_at":"2015-02-10T19:05:09Z","merge_commit_sha":"18e12f4b810830508569d0a3fb77e47e5cedc774","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/pulls/9/commits","review_comments_url":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/pulls/9/comments","review_comment_url":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/pulls/comments/{number}","comments_url":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/issues/9/comments","statuses_url":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/statuses/0bf1abcf508807b5e932d95e2a66cab30bbe0ca6","head":{"label":"drwahl:master","ref":"master","sha":"0bf1abcf508807b5e932d95e2a66cab30bbe0ca6","user":{"login":"drwahl","id":1279198,"avatar_url":"https://avatars.githubusercontent.com/u/1279198?v=3","gravatar_id":"","url":"https://api.github.com/users/drwahl","html_url":"https://github.com/drwahl","followers_url":"https://api.github.com/users/drwahl/followers","following_url":"https://api.github.com/users/drwahl/following{/other_user}","gists_url":"https://api.github.com/users/drwahl/gists{/gist_id}","starred_url":"https://api.github.com/users/drwahl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drwahl/subscriptions","organizations_url":"https://api.github.com/users/drwahl/orgs","repos_url":"https://api.github.com/users/drwahl/repos","events_url":"https://api.github.com/users/drwahl/events{/privacy}","received_events_url":"https://api.github.com/users/drwahl/received_events","type":"User","site_admin":false},"repo":{"id":30598265,"name":"collectd-rabbitmq","full_name":"drwahl/collectd-rabbitmq","owner":{"login":"drwahl","id":1279198,"avatar_url":"https://avatars.githubusercontent.com/u/1279198?v=3","gravatar_id":"","url":"https://api.github.com/users/drwahl","html_url":"https://github.com/drwahl","followers_url":"https://api.github.com/users/drwahl/followers","following_url":"https://api.github.com/users/drwahl/following{/other_user}","gists_url":"https://api.github.com/users/drwahl/gists{/gist_id}","starred_url":"https://api.github.com/users/drwahl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drwahl/subscriptions","organizations_url":"https://api.github.com/users/drwahl/orgs","repos_url":"https://api.github.com/users/drwahl/repos","events_url":"https://api.github.com/users/drwahl/events{/privacy}","received_events_url":"https://api.github.com/users/drwahl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/drwahl/collectd-rabbitmq","description":"","fork":true,"url":"https://api.github.com/repos/drwahl/collectd-rabbitmq","forks_url":"https://api.github.com/repos/drwahl/collectd-rabbitmq/forks","keys_url":"https://api.github.com/repos/drwahl/collectd-rabbitmq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/drwahl/collectd-rabbitmq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/drwahl/collectd-rabbitmq/teams","hooks_url":"https://api.github.com/repos/drwahl/collectd-rabbitmq/hooks","issue_events_url":"https://api.github.com/repos/drwahl/collectd-rabbitmq/issues/events{/number}","events_url":"https://api.github.com/repos/drwahl/collectd-rabbitmq/events","assignees_url":"https://api.github.com/repos/drwahl/collectd-rabbitmq/assignees{/user}","branches_url":"https://api.github.com/repos/drwahl/collectd-rabbitmq/branches{/branch}","tags_url":"https://api.github.com/repos/drwahl/collectd-rabbitmq/tags","blobs_url":"https://api.github.com/repos/drwahl/collectd-rabbitmq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/drwahl/collectd-rabbitmq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/drwahl/collectd-rabbitmq/git/refs{/sha}","trees_url":"https://api.github.com/repos/drwahl/collectd-rabbitmq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/drwahl/collectd-rabbitmq/statuses/{sha}","languages_url":"https://api.github.com/repos/drwahl/collectd-rabbitmq/languages","stargazers_url":"https://api.github.com/repos/drwahl/collectd-rabbitmq/stargazers","contributors_url":"https://api.github.com/repos/drwahl/collectd-rabbitmq/contributors","subscribers_url":"https://api.github.com/repos/drwahl/collectd-rabbitmq/subscribers","subscription_url":"https://api.github.com/repos/drwahl/collectd-rabbitmq/subscription","commits_url":"https://api.github.com/repos/drwahl/collectd-rabbitmq/commits{/sha}","git_commits_url":"https://api.github.com/repos/drwahl/collectd-rabbitmq/git/commits{/sha}","comments_url":"https://api.github.com/repos/drwahl/collectd-rabbitmq/comments{/number}","issue_comment_url":"https://api.github.com/repos/drwahl/collectd-rabbitmq/issues/comments/{number}","contents_url":"https://api.github.com/repos/drwahl/collectd-rabbitmq/contents/{+path}","compare_url":"https://api.github.com/repos/drwahl/collectd-rabbitmq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/drwahl/collectd-rabbitmq/merges","archive_url":"https://api.github.com/repos/drwahl/collectd-rabbitmq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/drwahl/collectd-rabbitmq/downloads","issues_url":"https://api.github.com/repos/drwahl/collectd-rabbitmq/issues{/number}","pulls_url":"https://api.github.com/repos/drwahl/collectd-rabbitmq/pulls{/number}","milestones_url":"https://api.github.com/repos/drwahl/collectd-rabbitmq/milestones{/number}","notifications_url":"https://api.github.com/repos/drwahl/collectd-rabbitmq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/drwahl/collectd-rabbitmq/labels{/name}","releases_url":"https://api.github.com/repos/drwahl/collectd-rabbitmq/releases{/id}","created_at":"2015-02-10T15:22:09Z","updated_at":"2015-02-10T15:53:10Z","pushed_at":"2015-02-10T15:53:09Z","git_url":"git://github.com/drwahl/collectd-rabbitmq.git","ssh_url":"git@github.com:drwahl/collectd-rabbitmq.git","clone_url":"https://github.com/drwahl/collectd-rabbitmq.git","svn_url":"https://github.com/drwahl/collectd-rabbitmq","homepage":null,"size":240,"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":"NYTimes:master","ref":"master","sha":"a332c3b5e8570367f54fc9d89ca6951efdc86285","user":{"login":"NYTimes","id":221409,"avatar_url":"https://avatars.githubusercontent.com/u/221409?v=3","gravatar_id":"","url":"https://api.github.com/users/NYTimes","html_url":"https://github.com/NYTimes","followers_url":"https://api.github.com/users/NYTimes/followers","following_url":"https://api.github.com/users/NYTimes/following{/other_user}","gists_url":"https://api.github.com/users/NYTimes/gists{/gist_id}","starred_url":"https://api.github.com/users/NYTimes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NYTimes/subscriptions","organizations_url":"https://api.github.com/users/NYTimes/orgs","repos_url":"https://api.github.com/users/NYTimes/repos","events_url":"https://api.github.com/users/NYTimes/events{/privacy}","received_events_url":"https://api.github.com/users/NYTimes/received_events","type":"Organization","site_admin":false},"repo":{"id":21172032,"name":"collectd-rabbitmq","full_name":"NYTimes/collectd-rabbitmq","owner":{"login":"NYTimes","id":221409,"avatar_url":"https://avatars.githubusercontent.com/u/221409?v=3","gravatar_id":"","url":"https://api.github.com/users/NYTimes","html_url":"https://github.com/NYTimes","followers_url":"https://api.github.com/users/NYTimes/followers","following_url":"https://api.github.com/users/NYTimes/following{/other_user}","gists_url":"https://api.github.com/users/NYTimes/gists{/gist_id}","starred_url":"https://api.github.com/users/NYTimes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NYTimes/subscriptions","organizations_url":"https://api.github.com/users/NYTimes/orgs","repos_url":"https://api.github.com/users/NYTimes/repos","events_url":"https://api.github.com/users/NYTimes/events{/privacy}","received_events_url":"https://api.github.com/users/NYTimes/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NYTimes/collectd-rabbitmq","description":"","fork":false,"url":"https://api.github.com/repos/NYTimes/collectd-rabbitmq","forks_url":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/forks","keys_url":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/teams","hooks_url":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/hooks","issue_events_url":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/issues/events{/number}","events_url":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/events","assignees_url":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/assignees{/user}","branches_url":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/branches{/branch}","tags_url":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/tags","blobs_url":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/git/refs{/sha}","trees_url":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/statuses/{sha}","languages_url":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/languages","stargazers_url":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/stargazers","contributors_url":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/contributors","subscribers_url":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/subscribers","subscription_url":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/subscription","commits_url":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/commits{/sha}","git_commits_url":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/git/commits{/sha}","comments_url":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/comments{/number}","issue_comment_url":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/issues/comments/{number}","contents_url":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/contents/{+path}","compare_url":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/merges","archive_url":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/downloads","issues_url":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/issues{/number}","pulls_url":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/pulls{/number}","milestones_url":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/milestones{/number}","notifications_url":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/labels{/name}","releases_url":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/releases{/id}","created_at":"2014-06-24T16:22:42Z","updated_at":"2015-02-07T14:06:42Z","pushed_at":"2015-02-10T19:05:09Z","git_url":"git://github.com/NYTimes/collectd-rabbitmq.git","ssh_url":"git@github.com:NYTimes/collectd-rabbitmq.git","clone_url":"https://github.com/NYTimes/collectd-rabbitmq.git","svn_url":"https://github.com/NYTimes/collectd-rabbitmq","homepage":null,"size":240,"stargazers_count":28,"watchers_count":28,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":2,"forks":13,"open_issues":2,"watchers":28,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/pulls/9"},"html":{"href":"https://github.com/NYTimes/collectd-rabbitmq/pull/9"},"issue":{"href":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/issues/9"},"comments":{"href":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/NYTimes/collectd-rabbitmq/statuses/0bf1abcf508807b5e932d95e2a66cab30bbe0ca6"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"jimbydamonk","id":5437001,"avatar_url":"https://avatars.githubusercontent.com/u/5437001?v=3","gravatar_id":"","url":"https://api.github.com/users/jimbydamonk","html_url":"https://github.com/jimbydamonk","followers_url":"https://api.github.com/users/jimbydamonk/followers","following_url":"https://api.github.com/users/jimbydamonk/following{/other_user}","gists_url":"https://api.github.com/users/jimbydamonk/gists{/gist_id}","starred_url":"https://api.github.com/users/jimbydamonk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimbydamonk/subscriptions","organizations_url":"https://api.github.com/users/jimbydamonk/orgs","repos_url":"https://api.github.com/users/jimbydamonk/repos","events_url":"https://api.github.com/users/jimbydamonk/events{/privacy}","received_events_url":"https://api.github.com/users/jimbydamonk/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":3,"additions":76,"deletions":50,"changed_files":2}}