diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2015-08-26 22:09:27 +0300 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2015-08-26 22:09:27 +0300 |
commit | 596acc38bc6187dd7c3e05dffa0164f7d9b87dc8 (patch) | |
tree | 88256ac8aa8c38a3b6a36d2da9e3b9b154ffb3fe /pylint/checkers/imports.py | |
parent | 90755257e2a2c1a9b45b1a7e5470eef760fe6a90 (diff) | |
download | pylint-596acc38bc6187dd7c3e05dffa0164f7d9b87dc8.tar.gz |
Use the new node names for the visit and leave methods
Also, emit a PendingDeprecationWarning if the old names are still
used, this support being removed in pylint 2.0.
Diffstat (limited to 'pylint/checkers/imports.py')
-rw-r--r-- | pylint/checkers/imports.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pylint/checkers/imports.py b/pylint/checkers/imports.py index a70f7ce..c1688df 100644 --- a/pylint/checkers/imports.py +++ b/pylint/checkers/imports.py @@ -267,7 +267,7 @@ given file (report RP0402 must not be disabled)'} # TODO This appears to be the list of all messages of the checker... # @check_messages('W0410', 'W0401', 'W0403', 'W0402', 'W0404', 'W0406', 'E0401') @check_messages(*(MSGS.keys())) - def visit_from(self, node): + def visit_importfrom(self, node): """triggered when a from statement is seen""" basename = node.modname if basename == '__future__': |