diff options
author | Noam Yorav-Raphael <noamraph@gmail.com> | 2015-06-29 09:08:14 +0300 |
---|---|---|
committer | Noam Yorav-Raphael <noamraph@gmail.com> | 2015-06-29 09:08:14 +0300 |
commit | 6cb5f83b7fc62a47a1ba80c2b5f68144f6bc7bbf (patch) | |
tree | ad700c62e72edc5d5378b3c09d6a00f64e2ef8ea /pylint/checkers/imports.py | |
parent | 4fe601c7e3677fb3f808d2564a76d4637b4230c8 (diff) | |
download | pylint-6cb5f83b7fc62a47a1ba80c2b5f68144f6bc7bbf.tar.gz |
Rename F0401 (import-error) to E0401 as it is not a fatal pylint errorrename-F0401-to-E0401
Diffstat (limited to 'pylint/checkers/imports.py')
-rw-r--r-- | pylint/checkers/imports.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pylint/checkers/imports.py b/pylint/checkers/imports.py index 817d966..7d1e713 100644 --- a/pylint/checkers/imports.py +++ b/pylint/checkers/imports.py @@ -126,9 +126,10 @@ def make_graph(filename, dep_info, sect, gtype): # the import checker itself ################################################### MSGS = { - 'F0401': ('Unable to import %s', + 'E0401': ('Unable to import %s', 'import-error', - 'Used when pylint has been unable to import a module.'), + 'Used when pylint has been unable to import a module.', + {'old_names': [('F0401', 'import-error')]}), 'R0401': ('Cyclic import (%s)', 'cyclic-import', 'Used when a cyclic import between two or more modules is \ @@ -246,7 +247,7 @@ given file (report RP0402 must not be disabled)'} self._check_reimport(node, name) # TODO This appears to be the list of all messages of the checker... - # @check_messages('W0410', 'W0401', 'W0403', 'W0402', 'W0404', 'W0406', 'F0401') + # @check_messages('W0410', 'W0401', 'W0403', 'W0402', 'W0404', 'W0406', 'E0401') @check_messages(*(MSGS.keys())) def visit_from(self, node): """triggered when a from statement is seen""" |