{"action":"created","comment":{"url":"https://api.github.com/repos/PyCQA/pylint/pulls/comments/61935792","id":61935792,"diff_hunk":"@@ -490,6 +490,8 @@ def _record_import(self, node, importedmodnode):\n                 importedname = node.modname\n             else:\n                 importedname = node.names[0][0].split('.')[0]\n+        if node.as_string().startswith('from .'):","path":"pylint/checkers/imports.py","position":4,"original_position":4,"commit_id":"c9c6db2b58f89990939fa215af81d2ef3830887d","original_commit_id":"c9c6db2b58f89990939fa215af81d2ef3830887d","user":{"login":"PCManticore","id":448166,"avatar_url":"https://avatars.githubusercontent.com/u/448166?v=3","gravatar_id":"","url":"https://api.github.com/users/PCManticore","html_url":"https://github.com/PCManticore","followers_url":"https://api.github.com/users/PCManticore/followers","following_url":"https://api.github.com/users/PCManticore/following{/other_user}","gists_url":"https://api.github.com/users/PCManticore/gists{/gist_id}","starred_url":"https://api.github.com/users/PCManticore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PCManticore/subscriptions","organizations_url":"https://api.github.com/users/PCManticore/orgs","repos_url":"https://api.github.com/users/PCManticore/repos","events_url":"https://api.github.com/users/PCManticore/events{/privacy}","received_events_url":"https://api.github.com/users/PCManticore/received_events","type":"User","site_admin":false},"body":"Check modname instead, but only if it's a ImportFrom.","created_at":"2016-05-03T18:55:14Z","updated_at":"2016-05-03T18:55:14Z","html_url":"https://github.com/PyCQA/pylint/pull/888#discussion_r61935792","pull_request_url":"https://api.github.com/repos/PyCQA/pylint/pulls/888","_links":{"self":{"href":"https://api.github.com/repos/PyCQA/pylint/pulls/comments/61935792"},"html":{"href":"https://github.com/PyCQA/pylint/pull/888#discussion_r61935792"},"pull_request":{"href":"https://api.github.com/repos/PyCQA/pylint/pulls/888"}}},"pull_request":{"url":"https://api.github.com/repos/PyCQA/pylint/pulls/888","id":68486003,"html_url":"https://github.com/PyCQA/pylint/pull/888","diff_url":"https://github.com/PyCQA/pylint/pull/888.diff","patch_url":"https://github.com/PyCQA/pylint/pull/888.patch","issue_url":"https://api.github.com/repos/PyCQA/pylint/issues/888","number":888,"state":"open","locked":false,"title":"[FIX] wrong-import-order: Fix detect local imports","user":{"login":"moylop260","id":6644187,"avatar_url":"https://avatars.githubusercontent.com/u/6644187?v=3","gravatar_id":"","url":"https://api.github.com/users/moylop260","html_url":"https://github.com/moylop260","followers_url":"https://api.github.com/users/moylop260/followers","following_url":"https://api.github.com/users/moylop260/following{/other_user}","gists_url":"https://api.github.com/users/moylop260/gists{/gist_id}","starred_url":"https://api.github.com/users/moylop260/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moylop260/subscriptions","organizations_url":"https://api.github.com/users/moylop260/orgs","repos_url":"https://api.github.com/users/moylop260/repos","events_url":"https://api.github.com/users/moylop260/events{/privacy}","received_events_url":"https://api.github.com/users/moylop260/received_events","type":"User","site_admin":false},"body":"The value node.modname for `from . import package`\r\nor `from .package import Class`\r\nreturns `package`\r\nBut `isort` needs `.package` to detect a local import.","created_at":"2016-05-01T03:29:44Z","updated_at":"2016-05-03T18:55:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6f9ce20113bed365114e92837b041e9fb5d6a984","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/PyCQA/pylint/pulls/888/commits","review_comments_url":"https://api.github.com/repos/PyCQA/pylint/pulls/888/comments","review_comment_url":"https://api.github.com/repos/PyCQA/pylint/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PyCQA/pylint/issues/888/comments","statuses_url":"https://api.github.com/repos/PyCQA/pylint/statuses/c9c6db2b58f89990939fa215af81d2ef3830887d","head":{"label":"vauxoo-dev:master-pylint-fix-wrong-order-moy","ref":"master-pylint-fix-wrong-order-moy","sha":"c9c6db2b58f89990939fa215af81d2ef3830887d","user":{"login":"vauxoo-dev","id":7662790,"avatar_url":"https://avatars.githubusercontent.com/u/7662790?v=3","gravatar_id":"","url":"https://api.github.com/users/vauxoo-dev","html_url":"https://github.com/vauxoo-dev","followers_url":"https://api.github.com/users/vauxoo-dev/followers","following_url":"https://api.github.com/users/vauxoo-dev/following{/other_user}","gists_url":"https://api.github.com/users/vauxoo-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/vauxoo-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vauxoo-dev/subscriptions","organizations_url":"https://api.github.com/users/vauxoo-dev/orgs","repos_url":"https://api.github.com/users/vauxoo-dev/repos","events_url":"https://api.github.com/users/vauxoo-dev/events{/privacy}","received_events_url":"https://api.github.com/users/vauxoo-dev/received_events","type":"Organization","site_admin":false},"repo":{"id":55994249,"name":"pylint","full_name":"vauxoo-dev/pylint","owner":{"login":"vauxoo-dev","id":7662790,"avatar_url":"https://avatars.githubusercontent.com/u/7662790?v=3","gravatar_id":"","url":"https://api.github.com/users/vauxoo-dev","html_url":"https://github.com/vauxoo-dev","followers_url":"https://api.github.com/users/vauxoo-dev/followers","following_url":"https://api.github.com/users/vauxoo-dev/following{/other_user}","gists_url":"https://api.github.com/users/vauxoo-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/vauxoo-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vauxoo-dev/subscriptions","organizations_url":"https://api.github.com/users/vauxoo-dev/orgs","repos_url":"https://api.github.com/users/vauxoo-dev/repos","events_url":"https://api.github.com/users/vauxoo-dev/events{/privacy}","received_events_url":"https://api.github.com/users/vauxoo-dev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vauxoo-dev/pylint","description":"A Python source code analyzer which looks for programming errors, helps enforcing a coding standard and sniffs for some code smells","fork":true,"url":"https://api.github.com/repos/vauxoo-dev/pylint","forks_url":"https://api.github.com/repos/vauxoo-dev/pylint/forks","keys_url":"https://api.github.com/repos/vauxoo-dev/pylint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vauxoo-dev/pylint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vauxoo-dev/pylint/teams","hooks_url":"https://api.github.com/repos/vauxoo-dev/pylint/hooks","issue_events_url":"https://api.github.com/repos/vauxoo-dev/pylint/issues/events{/number}","events_url":"https://api.github.com/repos/vauxoo-dev/pylint/events","assignees_url":"https://api.github.com/repos/vauxoo-dev/pylint/assignees{/user}","branches_url":"https://api.github.com/repos/vauxoo-dev/pylint/branches{/branch}","tags_url":"https://api.github.com/repos/vauxoo-dev/pylint/tags","blobs_url":"https://api.github.com/repos/vauxoo-dev/pylint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vauxoo-dev/pylint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vauxoo-dev/pylint/git/refs{/sha}","trees_url":"https://api.github.com/repos/vauxoo-dev/pylint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vauxoo-dev/pylint/statuses/{sha}","languages_url":"https://api.github.com/repos/vauxoo-dev/pylint/languages","stargazers_url":"https://api.github.com/repos/vauxoo-dev/pylint/stargazers","contributors_url":"https://api.github.com/repos/vauxoo-dev/pylint/contributors","subscribers_url":"https://api.github.com/repos/vauxoo-dev/pylint/subscribers","subscription_url":"https://api.github.com/repos/vauxoo-dev/pylint/subscription","commits_url":"https://api.github.com/repos/vauxoo-dev/pylint/commits{/sha}","git_commits_url":"https://api.github.com/repos/vauxoo-dev/pylint/git/commits{/sha}","comments_url":"https://api.github.com/repos/vauxoo-dev/pylint/comments{/number}","issue_comment_url":"https://api.github.com/repos/vauxoo-dev/pylint/issues/comments{/number}","contents_url":"https://api.github.com/repos/vauxoo-dev/pylint/contents/{+path}","compare_url":"https://api.github.com/repos/vauxoo-dev/pylint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vauxoo-dev/pylint/merges","archive_url":"https://api.github.com/repos/vauxoo-dev/pylint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vauxoo-dev/pylint/downloads","issues_url":"https://api.github.com/repos/vauxoo-dev/pylint/issues{/number}","pulls_url":"https://api.github.com/repos/vauxoo-dev/pylint/pulls{/number}","milestones_url":"https://api.github.com/repos/vauxoo-dev/pylint/milestones{/number}","notifications_url":"https://api.github.com/repos/vauxoo-dev/pylint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vauxoo-dev/pylint/labels{/name}","releases_url":"https://api.github.com/repos/vauxoo-dev/pylint/releases{/id}","deployments_url":"https://api.github.com/repos/vauxoo-dev/pylint/deployments","created_at":"2016-04-11T17:49:18Z","updated_at":"2016-04-11T17:49:20Z","pushed_at":"2016-05-01T05:59:33Z","git_url":"git://github.com/vauxoo-dev/pylint.git","ssh_url":"git@github.com:vauxoo-dev/pylint.git","clone_url":"https://github.com/vauxoo-dev/pylint.git","svn_url":"https://github.com/vauxoo-dev/pylint","homepage":null,"size":20526,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"PyCQA:master","ref":"master","sha":"9fffdb6243491116c8ca85c6ff3fe45ac7ec5607","user":{"login":"PyCQA","id":8749848,"avatar_url":"https://avatars.githubusercontent.com/u/8749848?v=3","gravatar_id":"","url":"https://api.github.com/users/PyCQA","html_url":"https://github.com/PyCQA","followers_url":"https://api.github.com/users/PyCQA/followers","following_url":"https://api.github.com/users/PyCQA/following{/other_user}","gists_url":"https://api.github.com/users/PyCQA/gists{/gist_id}","starred_url":"https://api.github.com/users/PyCQA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PyCQA/subscriptions","organizations_url":"https://api.github.com/users/PyCQA/orgs","repos_url":"https://api.github.com/users/PyCQA/repos","events_url":"https://api.github.com/users/PyCQA/events{/privacy}","received_events_url":"https://api.github.com/users/PyCQA/received_events","type":"Organization","site_admin":false},"repo":{"id":47671127,"name":"pylint","full_name":"PyCQA/pylint","owner":{"login":"PyCQA","id":8749848,"avatar_url":"https://avatars.githubusercontent.com/u/8749848?v=3","gravatar_id":"","url":"https://api.github.com/users/PyCQA","html_url":"https://github.com/PyCQA","followers_url":"https://api.github.com/users/PyCQA/followers","following_url":"https://api.github.com/users/PyCQA/following{/other_user}","gists_url":"https://api.github.com/users/PyCQA/gists{/gist_id}","starred_url":"https://api.github.com/users/PyCQA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PyCQA/subscriptions","organizations_url":"https://api.github.com/users/PyCQA/orgs","repos_url":"https://api.github.com/users/PyCQA/repos","events_url":"https://api.github.com/users/PyCQA/events{/privacy}","received_events_url":"https://api.github.com/users/PyCQA/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PyCQA/pylint","description":"A Python source code analyzer which looks for programming errors, helps enforcing a coding standard and sniffs for some code smells","fork":false,"url":"https://api.github.com/repos/PyCQA/pylint","forks_url":"https://api.github.com/repos/PyCQA/pylint/forks","keys_url":"https://api.github.com/repos/PyCQA/pylint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PyCQA/pylint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PyCQA/pylint/teams","hooks_url":"https://api.github.com/repos/PyCQA/pylint/hooks","issue_events_url":"https://api.github.com/repos/PyCQA/pylint/issues/events{/number}","events_url":"https://api.github.com/repos/PyCQA/pylint/events","assignees_url":"https://api.github.com/repos/PyCQA/pylint/assignees{/user}","branches_url":"https://api.github.com/repos/PyCQA/pylint/branches{/branch}","tags_url":"https://api.github.com/repos/PyCQA/pylint/tags","blobs_url":"https://api.github.com/repos/PyCQA/pylint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PyCQA/pylint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PyCQA/pylint/git/refs{/sha}","trees_url":"https://api.github.com/repos/PyCQA/pylint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PyCQA/pylint/statuses/{sha}","languages_url":"https://api.github.com/repos/PyCQA/pylint/languages","stargazers_url":"https://api.github.com/repos/PyCQA/pylint/stargazers","contributors_url":"https://api.github.com/repos/PyCQA/pylint/contributors","subscribers_url":"https://api.github.com/repos/PyCQA/pylint/subscribers","subscription_url":"https://api.github.com/repos/PyCQA/pylint/subscription","commits_url":"https://api.github.com/repos/PyCQA/pylint/commits{/sha}","git_commits_url":"https://api.github.com/repos/PyCQA/pylint/git/commits{/sha}","comments_url":"https://api.github.com/repos/PyCQA/pylint/comments{/number}","issue_comment_url":"https://api.github.com/repos/PyCQA/pylint/issues/comments{/number}","contents_url":"https://api.github.com/repos/PyCQA/pylint/contents/{+path}","compare_url":"https://api.github.com/repos/PyCQA/pylint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PyCQA/pylint/merges","archive_url":"https://api.github.com/repos/PyCQA/pylint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PyCQA/pylint/downloads","issues_url":"https://api.github.com/repos/PyCQA/pylint/issues{/number}","pulls_url":"https://api.github.com/repos/PyCQA/pylint/pulls{/number}","milestones_url":"https://api.github.com/repos/PyCQA/pylint/milestones{/number}","notifications_url":"https://api.github.com/repos/PyCQA/pylint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PyCQA/pylint/labels{/name}","releases_url":"https://api.github.com/repos/PyCQA/pylint/releases{/id}","deployments_url":"https://api.github.com/repos/PyCQA/pylint/deployments","created_at":"2015-12-09T05:40:02Z","updated_at":"2016-05-03T15:44:38Z","pushed_at":"2016-05-01T05:59:34Z","git_url":"git://github.com/PyCQA/pylint.git","ssh_url":"git@github.com:PyCQA/pylint.git","clone_url":"https://github.com/PyCQA/pylint.git","svn_url":"https://github.com/PyCQA/pylint","homepage":null,"size":20495,"stargazers_count":168,"watchers_count":168,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":46,"mirror_url":null,"open_issues_count":216,"forks":46,"open_issues":216,"watchers":168,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PyCQA/pylint/pulls/888"},"html":{"href":"https://github.com/PyCQA/pylint/pull/888"},"issue":{"href":"https://api.github.com/repos/PyCQA/pylint/issues/888"},"comments":{"href":"https://api.github.com/repos/PyCQA/pylint/issues/888/comments"},"review_comments":{"href":"https://api.github.com/repos/PyCQA/pylint/pulls/888/comments"},"review_comment":{"href":"https://api.github.com/repos/PyCQA/pylint/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PyCQA/pylint/pulls/888/commits"},"statuses":{"href":"https://api.github.com/repos/PyCQA/pylint/statuses/c9c6db2b58f89990939fa215af81d2ef3830887d"}}}}