summaryrefslogtreecommitdiff
path: root/pylint/lint.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2019-10-09 09:43:38 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2019-10-09 09:54:52 +0200
commit1e05190ef09f6bdb3d4ce8573e2548853df30cdf (patch)
treeed6017f425c8c04551411ee4aa6e6c89e73ace96 /pylint/lint.py
parent3f86141e608afad6b9fb69fcc13b1cf5a8d7eb9f (diff)
downloadpylint-git-1e05190ef09f6bdb3d4ce8573e2548853df30cdf.tar.gz
``import-outside-toplevel`` is emitted for ``ImportFrom`` nodes as well.
Close #3175
Diffstat (limited to 'pylint/lint.py')
-rw-r--r--pylint/lint.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/pylint/lint.py b/pylint/lint.py
index bbb01d35e..a98970b78 100644
--- a/pylint/lint.py
+++ b/pylint/lint.py
@@ -73,7 +73,7 @@ from astroid import modutils
from astroid.__pkginfo__ import version as astroid_version
from astroid.builder import AstroidBuilder
-from pylint import checkers, config, exceptions, interfaces, reporters
+from pylint import __pkginfo__, checkers, config, exceptions, interfaces, reporters
from pylint.__pkginfo__ import version
from pylint.constants import MAIN_CHECKER_NAME, MSG_TYPES, OPTION_RGX
from pylint.message import Message, MessageDefinitionStore, MessagesHandlerMixIn
@@ -1761,8 +1761,6 @@ group are mutually exclusive.",
def cb_generate_manpage(self, *args, **kwargs):
"""optik callback for sample config file generation"""
- from pylint import __pkginfo__
-
self.linter.generate_manpage(__pkginfo__)
sys.exit(0)