diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2019-10-09 09:43:38 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2019-10-09 09:54:52 +0200 |
commit | 1e05190ef09f6bdb3d4ce8573e2548853df30cdf (patch) | |
tree | ed6017f425c8c04551411ee4aa6e6c89e73ace96 /pylint/lint.py | |
parent | 3f86141e608afad6b9fb69fcc13b1cf5a8d7eb9f (diff) | |
download | pylint-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.py | 4 |
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) |