diff options
author | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2010-07-01 18:27:59 +0200 |
---|---|---|
committer | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2010-07-01 18:27:59 +0200 |
commit | 070822ed3001bcca6bf24328f3c2279d11362be4 (patch) | |
tree | 010c31c0799a54f7326fc412f2cd36f73f5935aa | |
parent | e935e7974d55f746f6e6e77adb8819638afe2d98 (diff) | |
download | pylint-070822ed3001bcca6bf24328f3c2279d11362be4.tar.gz |
Patrick Altman patch closing #36913
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | checkers/imports.py | 4 |
2 files changed, 8 insertions, 3 deletions
@@ -1,8 +1,13 @@ ChangeLog for PyLint ==================== + -- + * fix #36193: import checker raise exception on cyclic import + + 2010-06-04 -- 0.21.1 - * fix #28962: pylint crash with new options, due to missing stats data while writing the Statistics by types report + * fix #28962: pylint crash with new options, due to missing stats data while + writing the Statistics by types report * updated man page to 0.21 or greater command line usage (fix debian #582494) diff --git a/checkers/imports.py b/checkers/imports.py index aa374be..282048a 100644 --- a/checkers/imports.py +++ b/checkers/imports.py @@ -213,9 +213,9 @@ given file (report RP0402 must not be disabled)'} def close(self): """called before visiting project (i.e set of modules)""" # don't try to compute cycles if the associated message is disabled - if self.linter.is_message_enabled('RP0401'): + if self.linter.is_message_enabled('R0401'): for cycle in get_cycles(self.import_graph): - self.add_message('RP0401', args=' -> '.join(cycle)) + self.add_message('R0401', args=' -> '.join(cycle)) def visit_import(self, node): """triggered when an import statement is seen""" |