summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSylvain Th?nault <sylvain.thenault@logilab.fr>2010-07-01 18:27:59 +0200
committerSylvain Th?nault <sylvain.thenault@logilab.fr>2010-07-01 18:27:59 +0200
commit070822ed3001bcca6bf24328f3c2279d11362be4 (patch)
tree010c31c0799a54f7326fc412f2cd36f73f5935aa
parente935e7974d55f746f6e6e77adb8819638afe2d98 (diff)
downloadpylint-070822ed3001bcca6bf24328f3c2279d11362be4.tar.gz
Patrick Altman patch closing #36913
-rw-r--r--ChangeLog7
-rw-r--r--checkers/imports.py4
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index a3cf0b9..dfce119 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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"""