{"action":"created","comment":{"url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/comments/214524196","pull_request_review_id":151604596,"id":214524196,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNDUyNDE5Ng==","diff_hunk":"@@ -2009,7 +2007,7 @@ def _warn_external(message, category=None):\n     etc.).\n     \"\"\"\n     frame = sys._getframe()\n-    for stacklevel in itertools.count(1):\n+    for stacklevel in itertools.count(1):  # lgtm[py/unused-loop-variable]","path":"lib/matplotlib/cbook/__init__.py","position":106,"original_position":106,"commit_id":"472fb3f287560de41f083f73847e988892d7ed8a","original_commit_id":"472fb3f287560de41f083f73847e988892d7ed8a","user":{"login":"timhoffm","id":2836374,"node_id":"MDQ6VXNlcjI4MzYzNzQ=","avatar_url":"https://avatars1.githubusercontent.com/u/2836374?v=4","gravatar_id":"","url":"https://api.github.com/users/timhoffm","html_url":"https://github.com/timhoffm","followers_url":"https://api.github.com/users/timhoffm/followers","following_url":"https://api.github.com/users/timhoffm/following{/other_user}","gists_url":"https://api.github.com/users/timhoffm/gists{/gist_id}","starred_url":"https://api.github.com/users/timhoffm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timhoffm/subscriptions","organizations_url":"https://api.github.com/users/timhoffm/orgs","repos_url":"https://api.github.com/users/timhoffm/repos","events_url":"https://api.github.com/users/timhoffm/events{/privacy}","received_events_url":"https://api.github.com/users/timhoffm/received_events","type":"User","site_admin":false},"body":"Not using the loop variable within the loop is often an error, even if it's used afterwards. I think this is what they want to indicate here.","created_at":"2018-09-01T22:18:11Z","updated_at":"2018-09-01T22:18:12Z","html_url":"https://github.com/matplotlib/matplotlib/pull/11994#discussion_r214524196","pull_request_url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/11994","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/comments/214524196"},"html":{"href":"https://github.com/matplotlib/matplotlib/pull/11994#discussion_r214524196"},"pull_request":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/11994"}},"in_reply_to_id":214524048},"pull_request":{"url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/11994","id":212566085,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEyNTY2MDg1","html_url":"https://github.com/matplotlib/matplotlib/pull/11994","diff_url":"https://github.com/matplotlib/matplotlib/pull/11994.diff","patch_url":"https://github.com/matplotlib/matplotlib/pull/11994.patch","issue_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/11994","number":11994,"state":"open","locked":false,"title":"Cleanup unused variables and imports","user":{"login":"timhoffm","id":2836374,"node_id":"MDQ6VXNlcjI4MzYzNzQ=","avatar_url":"https://avatars1.githubusercontent.com/u/2836374?v=4","gravatar_id":"","url":"https://api.github.com/users/timhoffm","html_url":"https://github.com/timhoffm","followers_url":"https://api.github.com/users/timhoffm/followers","following_url":"https://api.github.com/users/timhoffm/following{/other_user}","gists_url":"https://api.github.com/users/timhoffm/gists{/gist_id}","starred_url":"https://api.github.com/users/timhoffm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timhoffm/subscriptions","organizations_url":"https://api.github.com/users/timhoffm/orgs","repos_url":"https://api.github.com/users/timhoffm/repos","events_url":"https://api.github.com/users/timhoffm/events{/privacy}","received_events_url":"https://api.github.com/users/timhoffm/received_events","type":"User","site_admin":false},"body":"## PR Summary\r\n\r\nContinuation of #11958 \r\n\r\nThis fixes a number of lgtm alerts:\r\n\r\n- unused imports and other import cleanups\r\n- unused variables","created_at":"2018-09-01T21:57:40Z","updated_at":"2018-09-01T22:18:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"875379f46b91cfcadc0bcd99d04280444c0b3fb5","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/11994/commits","review_comments_url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/11994/comments","review_comment_url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/comments{/number}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/11994/comments","statuses_url":"https://api.github.com/repos/matplotlib/matplotlib/statuses/472fb3f287560de41f083f73847e988892d7ed8a","head":{"label":"timhoffm:lgtm-unused-part2","ref":"lgtm-unused-part2","sha":"472fb3f287560de41f083f73847e988892d7ed8a","user":{"login":"timhoffm","id":2836374,"node_id":"MDQ6VXNlcjI4MzYzNzQ=","avatar_url":"https://avatars1.githubusercontent.com/u/2836374?v=4","gravatar_id":"","url":"https://api.github.com/users/timhoffm","html_url":"https://github.com/timhoffm","followers_url":"https://api.github.com/users/timhoffm/followers","following_url":"https://api.github.com/users/timhoffm/following{/other_user}","gists_url":"https://api.github.com/users/timhoffm/gists{/gist_id}","starred_url":"https://api.github.com/users/timhoffm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timhoffm/subscriptions","organizations_url":"https://api.github.com/users/timhoffm/orgs","repos_url":"https://api.github.com/users/timhoffm/repos","events_url":"https://api.github.com/users/timhoffm/events{/privacy}","received_events_url":"https://api.github.com/users/timhoffm/received_events","type":"User","site_admin":false},"repo":{"id":110003219,"node_id":"MDEwOlJlcG9zaXRvcnkxMTAwMDMyMTk=","name":"matplotlib","full_name":"timhoffm/matplotlib","owner":{"login":"timhoffm","id":2836374,"node_id":"MDQ6VXNlcjI4MzYzNzQ=","avatar_url":"https://avatars1.githubusercontent.com/u/2836374?v=4","gravatar_id":"","url":"https://api.github.com/users/timhoffm","html_url":"https://github.com/timhoffm","followers_url":"https://api.github.com/users/timhoffm/followers","following_url":"https://api.github.com/users/timhoffm/following{/other_user}","gists_url":"https://api.github.com/users/timhoffm/gists{/gist_id}","starred_url":"https://api.github.com/users/timhoffm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timhoffm/subscriptions","organizations_url":"https://api.github.com/users/timhoffm/orgs","repos_url":"https://api.github.com/users/timhoffm/repos","events_url":"https://api.github.com/users/timhoffm/events{/privacy}","received_events_url":"https://api.github.com/users/timhoffm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/timhoffm/matplotlib","description":"matplotlib: plotting with Python","fork":true,"url":"https://api.github.com/repos/timhoffm/matplotlib","forks_url":"https://api.github.com/repos/timhoffm/matplotlib/forks","keys_url":"https://api.github.com/repos/timhoffm/matplotlib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/timhoffm/matplotlib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/timhoffm/matplotlib/teams","hooks_url":"https://api.github.com/repos/timhoffm/matplotlib/hooks","issue_events_url":"https://api.github.com/repos/timhoffm/matplotlib/issues/events{/number}","events_url":"https://api.github.com/repos/timhoffm/matplotlib/events","assignees_url":"https://api.github.com/repos/timhoffm/matplotlib/assignees{/user}","branches_url":"https://api.github.com/repos/timhoffm/matplotlib/branches{/branch}","tags_url":"https://api.github.com/repos/timhoffm/matplotlib/tags","blobs_url":"https://api.github.com/repos/timhoffm/matplotlib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/timhoffm/matplotlib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/timhoffm/matplotlib/git/refs{/sha}","trees_url":"https://api.github.com/repos/timhoffm/matplotlib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/timhoffm/matplotlib/statuses/{sha}","languages_url":"https://api.github.com/repos/timhoffm/matplotlib/languages","stargazers_url":"https://api.github.com/repos/timhoffm/matplotlib/stargazers","contributors_url":"https://api.github.com/repos/timhoffm/matplotlib/contributors","subscribers_url":"https://api.github.com/repos/timhoffm/matplotlib/subscribers","subscription_url":"https://api.github.com/repos/timhoffm/matplotlib/subscription","commits_url":"https://api.github.com/repos/timhoffm/matplotlib/commits{/sha}","git_commits_url":"https://api.github.com/repos/timhoffm/matplotlib/git/commits{/sha}","comments_url":"https://api.github.com/repos/timhoffm/matplotlib/comments{/number}","issue_comment_url":"https://api.github.com/repos/timhoffm/matplotlib/issues/comments{/number}","contents_url":"https://api.github.com/repos/timhoffm/matplotlib/contents/{+path}","compare_url":"https://api.github.com/repos/timhoffm/matplotlib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/timhoffm/matplotlib/merges","archive_url":"https://api.github.com/repos/timhoffm/matplotlib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/timhoffm/matplotlib/downloads","issues_url":"https://api.github.com/repos/timhoffm/matplotlib/issues{/number}","pulls_url":"https://api.github.com/repos/timhoffm/matplotlib/pulls{/number}","milestones_url":"https://api.github.com/repos/timhoffm/matplotlib/milestones{/number}","notifications_url":"https://api.github.com/repos/timhoffm/matplotlib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/timhoffm/matplotlib/labels{/name}","releases_url":"https://api.github.com/repos/timhoffm/matplotlib/releases{/id}","deployments_url":"https://api.github.com/repos/timhoffm/matplotlib/deployments","created_at":"2017-11-08T16:44:57Z","updated_at":"2018-09-01T21:58:15Z","pushed_at":"2018-09-01T22:05:04Z","git_url":"git://github.com/timhoffm/matplotlib.git","ssh_url":"git@github.com:timhoffm/matplotlib.git","clone_url":"https://github.com/timhoffm/matplotlib.git","svn_url":"https://github.com/timhoffm/matplotlib","homepage":"http://matplotlib.org/","size":333366,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"matplotlib:master","ref":"master","sha":"b6a34000d93219905bb7338cb83fad50746c9c9e","user":{"login":"matplotlib","id":215947,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxNTk0Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/215947?v=4","gravatar_id":"","url":"https://api.github.com/users/matplotlib","html_url":"https://github.com/matplotlib","followers_url":"https://api.github.com/users/matplotlib/followers","following_url":"https://api.github.com/users/matplotlib/following{/other_user}","gists_url":"https://api.github.com/users/matplotlib/gists{/gist_id}","starred_url":"https://api.github.com/users/matplotlib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matplotlib/subscriptions","organizations_url":"https://api.github.com/users/matplotlib/orgs","repos_url":"https://api.github.com/users/matplotlib/repos","events_url":"https://api.github.com/users/matplotlib/events{/privacy}","received_events_url":"https://api.github.com/users/matplotlib/received_events","type":"Organization","site_admin":false},"repo":{"id":1385122,"node_id":"MDEwOlJlcG9zaXRvcnkxMzg1MTIy","name":"matplotlib","full_name":"matplotlib/matplotlib","owner":{"login":"matplotlib","id":215947,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxNTk0Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/215947?v=4","gravatar_id":"","url":"https://api.github.com/users/matplotlib","html_url":"https://github.com/matplotlib","followers_url":"https://api.github.com/users/matplotlib/followers","following_url":"https://api.github.com/users/matplotlib/following{/other_user}","gists_url":"https://api.github.com/users/matplotlib/gists{/gist_id}","starred_url":"https://api.github.com/users/matplotlib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matplotlib/subscriptions","organizations_url":"https://api.github.com/users/matplotlib/orgs","repos_url":"https://api.github.com/users/matplotlib/repos","events_url":"https://api.github.com/users/matplotlib/events{/privacy}","received_events_url":"https://api.github.com/users/matplotlib/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/matplotlib/matplotlib","description":"matplotlib: plotting with Python","fork":false,"url":"https://api.github.com/repos/matplotlib/matplotlib","forks_url":"https://api.github.com/repos/matplotlib/matplotlib/forks","keys_url":"https://api.github.com/repos/matplotlib/matplotlib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matplotlib/matplotlib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matplotlib/matplotlib/teams","hooks_url":"https://api.github.com/repos/matplotlib/matplotlib/hooks","issue_events_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/events{/number}","events_url":"https://api.github.com/repos/matplotlib/matplotlib/events","assignees_url":"https://api.github.com/repos/matplotlib/matplotlib/assignees{/user}","branches_url":"https://api.github.com/repos/matplotlib/matplotlib/branches{/branch}","tags_url":"https://api.github.com/repos/matplotlib/matplotlib/tags","blobs_url":"https://api.github.com/repos/matplotlib/matplotlib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matplotlib/matplotlib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matplotlib/matplotlib/git/refs{/sha}","trees_url":"https://api.github.com/repos/matplotlib/matplotlib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matplotlib/matplotlib/statuses/{sha}","languages_url":"https://api.github.com/repos/matplotlib/matplotlib/languages","stargazers_url":"https://api.github.com/repos/matplotlib/matplotlib/stargazers","contributors_url":"https://api.github.com/repos/matplotlib/matplotlib/contributors","subscribers_url":"https://api.github.com/repos/matplotlib/matplotlib/subscribers","subscription_url":"https://api.github.com/repos/matplotlib/matplotlib/subscription","commits_url":"https://api.github.com/repos/matplotlib/matplotlib/commits{/sha}","git_commits_url":"https://api.github.com/repos/matplotlib/matplotlib/git/commits{/sha}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/comments{/number}","issue_comment_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/comments{/number}","contents_url":"https://api.github.com/repos/matplotlib/matplotlib/contents/{+path}","compare_url":"https://api.github.com/repos/matplotlib/matplotlib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matplotlib/matplotlib/merges","archive_url":"https://api.github.com/repos/matplotlib/matplotlib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matplotlib/matplotlib/downloads","issues_url":"https://api.github.com/repos/matplotlib/matplotlib/issues{/number}","pulls_url":"https://api.github.com/repos/matplotlib/matplotlib/pulls{/number}","milestones_url":"https://api.github.com/repos/matplotlib/matplotlib/milestones{/number}","notifications_url":"https://api.github.com/repos/matplotlib/matplotlib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/labels{/name}","releases_url":"https://api.github.com/repos/matplotlib/matplotlib/releases{/id}","deployments_url":"https://api.github.com/repos/matplotlib/matplotlib/deployments","created_at":"2011-02-19T03:17:12Z","updated_at":"2018-09-01T22:11:04Z","pushed_at":"2018-09-01T22:10:15Z","git_url":"git://github.com/matplotlib/matplotlib.git","ssh_url":"git@github.com:matplotlib/matplotlib.git","clone_url":"https://github.com/matplotlib/matplotlib.git","svn_url":"https://github.com/matplotlib/matplotlib","homepage":"http://matplotlib.org/","size":333369,"stargazers_count":7831,"watchers_count":7831,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3597,"mirror_url":null,"archived":false,"open_issues_count":1388,"license":null,"forks":3597,"open_issues":1388,"watchers":7831,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/11994"},"html":{"href":"https://github.com/matplotlib/matplotlib/pull/11994"},"issue":{"href":"https://api.github.com/repos/matplotlib/matplotlib/issues/11994"},"comments":{"href":"https://api.github.com/repos/matplotlib/matplotlib/issues/11994/comments"},"review_comments":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/11994/comments"},"review_comment":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/11994/commits"},"statuses":{"href":"https://api.github.com/repos/matplotlib/matplotlib/statuses/472fb3f287560de41f083f73847e988892d7ed8a"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"timhoffm"}}