GitHub PullRequestEvent at 2014-06-27 22:44:52
Repository: ensure
Actor: harrisonmetz
Payload: {"action":"closed","number":6,"pull_request":{"url":"https://api.github.com/repos/kislyuk/ensure/pulls/6","id":17728101,"html_url":"https://github.com/kislyuk/ensure/pull/6","diff_url":"https://github.com/kislyuk/ensure/pull/6.diff","patch_url":"https://github.com/kislyuk/ensure/pull/6.patch","issue_url":"https://api.github.com/repos/kislyuk/ensure/issues/6","number":6,"state":"closed","title":"Only look at variables that are arguments in the function","user":{"login":"harrisonmetz","id":7883408,"avatar_url":"https://avatars.githubusercontent.com/u/7883408?","gravatar_id":"1340adbafee69264bee4a8fd530e858b","url":"https://api.github.com/users/harrisonmetz","html_url":"https://github.com/harrisonmetz","followers_url":"https://api.github.com/users/harrisonmetz/followers","following_url":"https://api.github.com/users/harrisonmetz/following{/other_user}","gists_url":"https://api.github.com/users/harrisonmetz/gists{/gist_id}","starred_url":"https://api.github.com/users/harrisonmetz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harrisonmetz/subscriptions","organizations_url":"https://api.github.com/users/harrisonmetz/orgs","repos_url":"https://api.github.com/users/harrisonmetz/repos","events_url":"https://api.github.com/users/harrisonmetz/events{/privacy}","received_events_url":"https://api.github.com/users/harrisonmetz/received_events","type":"User","site_admin":false},"body":"f.__code__.co_varnames are ALL the variables in a function (not just the ones which are arguments). Those are the first ones in up to co_argcount so stop loping after it. (Of course, it won't be in the __annotations__, but if there is a long function it's a waste of time to check these variables as the decorator is being applied).","created_at":"2014-06-27T21:50:07Z","updated_at":"2014-06-27T22:44:52Z","closed_at":"2014-06-27T22:44:52Z","merged_at":null,"merge_commit_sha":"2d25e373492cee6d58fd60407c390540d4b971b4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kislyuk/ensure/pulls/6/commits","review_comments_url":"https://api.github.com/repos/kislyuk/ensure/pulls/6/comments","review_comment_url":"https://api.github.com/repos/kislyuk/ensure/pulls/comments/{number}","comments_url":"https://api.github.com/repos/kislyuk/ensure/issues/6/comments","statuses_url":"https://api.github.com/repos/kislyuk/ensure/statuses/108f32840c47d47c78861e8e5b880dedc67e0a5f","head":{"label":"harrisonmetz:master","ref":"master","sha":"108f32840c47d47c78861e8e5b880dedc67e0a5f","user":{"login":"harrisonmetz","id":7883408,"avatar_url":"https://avatars.githubusercontent.com/u/7883408?","gravatar_id":"1340adbafee69264bee4a8fd530e858b","url":"https://api.github.com/users/harrisonmetz","html_url":"https://github.com/harrisonmetz","followers_url":"https://api.github.com/users/harrisonmetz/followers","following_url":"https://api.github.com/users/harrisonmetz/following{/other_user}","gists_url":"https://api.github.com/users/harrisonmetz/gists{/gist_id}","starred_url":"https://api.github.com/users/harrisonmetz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harrisonmetz/subscriptions","organizations_url":"https://api.github.com/users/harrisonmetz/orgs","repos_url":"https://api.github.com/users/harrisonmetz/repos","events_url":"https://api.github.com/users/harrisonmetz/events{/privacy}","received_events_url":"https://api.github.com/users/harrisonmetz/received_events","type":"User","site_admin":false},"repo":{"id":20816164,"name":"ensure","full_name":"harrisonmetz/ensure","owner":{"login":"harrisonmetz","id":7883408,"avatar_url":"https://avatars.githubusercontent.com/u/7883408?","gravatar_id":"1340adbafee69264bee4a8fd530e858b","url":"https://api.github.com/users/harrisonmetz","html_url":"https://github.com/harrisonmetz","followers_url":"https://api.github.com/users/harrisonmetz/followers","following_url":"https://api.github.com/users/harrisonmetz/following{/other_user}","gists_url":"https://api.github.com/users/harrisonmetz/gists{/gist_id}","starred_url":"https://api.github.com/users/harrisonmetz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harrisonmetz/subscriptions","organizations_url":"https://api.github.com/users/harrisonmetz/orgs","repos_url":"https://api.github.com/users/harrisonmetz/repos","events_url":"https://api.github.com/users/harrisonmetz/events{/privacy}","received_events_url":"https://api.github.com/users/harrisonmetz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/harrisonmetz/ensure","description":"Validate conditions, Python style.","fork":true,"url":"https://api.github.com/repos/harrisonmetz/ensure","forks_url":"https://api.github.com/repos/harrisonmetz/ensure/forks","keys_url":"https://api.github.com/repos/harrisonmetz/ensure/keys{/key_id}","collaborators_url":"https://api.github.com/repos/harrisonmetz/ensure/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/harrisonmetz/ensure/teams","hooks_url":"https://api.github.com/repos/harrisonmetz/ensure/hooks","issue_events_url":"https://api.github.com/repos/harrisonmetz/ensure/issues/events{/number}","events_url":"https://api.github.com/repos/harrisonmetz/ensure/events","assignees_url":"https://api.github.com/repos/harrisonmetz/ensure/assignees{/user}","branches_url":"https://api.github.com/repos/harrisonmetz/ensure/branches{/branch}","tags_url":"https://api.github.com/repos/harrisonmetz/ensure/tags","blobs_url":"https://api.github.com/repos/harrisonmetz/ensure/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/harrisonmetz/ensure/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/harrisonmetz/ensure/git/refs{/sha}","trees_url":"https://api.github.com/repos/harrisonmetz/ensure/git/trees{/sha}","statuses_url":"https://api.github.com/repos/harrisonmetz/ensure/statuses/{sha}","languages_url":"https://api.github.com/repos/harrisonmetz/ensure/languages","stargazers_url":"https://api.github.com/repos/harrisonmetz/ensure/stargazers","contributors_url":"https://api.github.com/repos/harrisonmetz/ensure/contributors","subscribers_url":"https://api.github.com/repos/harrisonmetz/ensure/subscribers","subscription_url":"https://api.github.com/repos/harrisonmetz/ensure/subscription","commits_url":"https://api.github.com/repos/harrisonmetz/ensure/commits{/sha}","git_commits_url":"https://api.github.com/repos/harrisonmetz/ensure/git/commits{/sha}","comments_url":"https://api.github.com/repos/harrisonmetz/ensure/comments{/number}","issue_comment_url":"https://api.github.com/repos/harrisonmetz/ensure/issues/comments/{number}","contents_url":"https://api.github.com/repos/harrisonmetz/ensure/contents/{+path}","compare_url":"https://api.github.com/repos/harrisonmetz/ensure/compare/{base}...{head}","merges_url":"https://api.github.com/repos/harrisonmetz/ensure/merges","archive_url":"https://api.github.com/repos/harrisonmetz/ensure/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/harrisonmetz/ensure/downloads","issues_url":"https://api.github.com/repos/harrisonmetz/ensure/issues{/number}","pulls_url":"https://api.github.com/repos/harrisonmetz/ensure/pulls{/number}","milestones_url":"https://api.github.com/repos/harrisonmetz/ensure/milestones{/number}","notifications_url":"https://api.github.com/repos/harrisonmetz/ensure/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/harrisonmetz/ensure/labels{/name}","releases_url":"https://api.github.com/repos/harrisonmetz/ensure/releases{/id}","created_at":"2014-06-13T19:59:00Z","updated_at":"2014-06-27T21:48:04Z","pushed_at":"2014-06-27T21:48:04Z","git_url":"git://github.com/harrisonmetz/ensure.git","ssh_url":"git@github.com:harrisonmetz/ensure.git","clone_url":"https://github.com/harrisonmetz/ensure.git","svn_url":"https://github.com/harrisonmetz/ensure","homepage":"https://ensure.readthedocs.org/","size":262,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"kislyuk:master","ref":"master","sha":"3b6bb1bd966a6ac65f056e243754d7017fefebab","user":{"login":"kislyuk","id":862013,"avatar_url":"https://avatars.githubusercontent.com/u/862013?","gravatar_id":"d38d50c13985ec1a6174f09699dfd400","url":"https://api.github.com/users/kislyuk","html_url":"https://github.com/kislyuk","followers_url":"https://api.github.com/users/kislyuk/followers","following_url":"https://api.github.com/users/kislyuk/following{/other_user}","gists_url":"https://api.github.com/users/kislyuk/gists{/gist_id}","starred_url":"https://api.github.com/users/kislyuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kislyuk/subscriptions","organizations_url":"https://api.github.com/users/kislyuk/orgs","repos_url":"https://api.github.com/users/kislyuk/repos","events_url":"https://api.github.com/users/kislyuk/events{/privacy}","received_events_url":"https://api.github.com/users/kislyuk/received_events","type":"User","site_admin":false},"repo":{"id":13535120,"name":"ensure","full_name":"kislyuk/ensure","owner":{"login":"kislyuk","id":862013,"avatar_url":"https://avatars.githubusercontent.com/u/862013?","gravatar_id":"d38d50c13985ec1a6174f09699dfd400","url":"https://api.github.com/users/kislyuk","html_url":"https://github.com/kislyuk","followers_url":"https://api.github.com/users/kislyuk/followers","following_url":"https://api.github.com/users/kislyuk/following{/other_user}","gists_url":"https://api.github.com/users/kislyuk/gists{/gist_id}","starred_url":"https://api.github.com/users/kislyuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kislyuk/subscriptions","organizations_url":"https://api.github.com/users/kislyuk/orgs","repos_url":"https://api.github.com/users/kislyuk/repos","events_url":"https://api.github.com/users/kislyuk/events{/privacy}","received_events_url":"https://api.github.com/users/kislyuk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kislyuk/ensure","description":"Validate conditions, Python style.","fork":false,"url":"https://api.github.com/repos/kislyuk/ensure","forks_url":"https://api.github.com/repos/kislyuk/ensure/forks","keys_url":"https://api.github.com/repos/kislyuk/ensure/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kislyuk/ensure/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kislyuk/ensure/teams","hooks_url":"https://api.github.com/repos/kislyuk/ensure/hooks","issue_events_url":"https://api.github.com/repos/kislyuk/ensure/issues/events{/number}","events_url":"https://api.github.com/repos/kislyuk/ensure/events","assignees_url":"https://api.github.com/repos/kislyuk/ensure/assignees{/user}","branches_url":"https://api.github.com/repos/kislyuk/ensure/branches{/branch}","tags_url":"https://api.github.com/repos/kislyuk/ensure/tags","blobs_url":"https://api.github.com/repos/kislyuk/ensure/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kislyuk/ensure/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kislyuk/ensure/git/refs{/sha}","trees_url":"https://api.github.com/repos/kislyuk/ensure/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kislyuk/ensure/statuses/{sha}","languages_url":"https://api.github.com/repos/kislyuk/ensure/languages","stargazers_url":"https://api.github.com/repos/kislyuk/ensure/stargazers","contributors_url":"https://api.github.com/repos/kislyuk/ensure/contributors","subscribers_url":"https://api.github.com/repos/kislyuk/ensure/subscribers","subscription_url":"https://api.github.com/repos/kislyuk/ensure/subscription","commits_url":"https://api.github.com/repos/kislyuk/ensure/commits{/sha}","git_commits_url":"https://api.github.com/repos/kislyuk/ensure/git/commits{/sha}","comments_url":"https://api.github.com/repos/kislyuk/ensure/comments{/number}","issue_comment_url":"https://api.github.com/repos/kislyuk/ensure/issues/comments/{number}","contents_url":"https://api.github.com/repos/kislyuk/ensure/contents/{+path}","compare_url":"https://api.github.com/repos/kislyuk/ensure/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kislyuk/ensure/merges","archive_url":"https://api.github.com/repos/kislyuk/ensure/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kislyuk/ensure/downloads","issues_url":"https://api.github.com/repos/kislyuk/ensure/issues{/number}","pulls_url":"https://api.github.com/repos/kislyuk/ensure/pulls{/number}","milestones_url":"https://api.github.com/repos/kislyuk/ensure/milestones{/number}","notifications_url":"https://api.github.com/repos/kislyuk/ensure/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kislyuk/ensure/labels{/name}","releases_url":"https://api.github.com/repos/kislyuk/ensure/releases{/id}","created_at":"2013-10-13T07:11:53Z","updated_at":"2014-06-16T15:55:57Z","pushed_at":"2014-06-16T15:55:57Z","git_url":"git://github.com/kislyuk/ensure.git","ssh_url":"git@github.com:kislyuk/ensure.git","clone_url":"https://github.com/kislyuk/ensure.git","svn_url":"https://github.com/kislyuk/ensure","homepage":"https://ensure.readthedocs.org/","size":802,"stargazers_count":21,"watchers_count":21,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":2,"mirror_url":null,"open_issues_count":0,"forks":2,"open_issues":0,"watchers":21,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kislyuk/ensure/pulls/6"},"html":{"href":"https://github.com/kislyuk/ensure/pull/6"},"issue":{"href":"https://api.github.com/repos/kislyuk/ensure/issues/6"},"comments":{"href":"https://api.github.com/repos/kislyuk/ensure/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/kislyuk/ensure/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/kislyuk/ensure/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/kislyuk/ensure/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/kislyuk/ensure/statuses/108f32840c47d47c78861e8e5b880dedc67e0a5f"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":1,"review_comments":0,"commits":1,"additions":7,"deletions":2,"changed_files":2}}