summaryrefslogtreecommitdiff
path: root/lint.py
diff options
context:
space:
mode:
authorSylvain Th?nault <sylvain.thenault@logilab.fr>2013-04-16 12:59:36 +0200
committerSylvain Th?nault <sylvain.thenault@logilab.fr>2013-04-16 12:59:36 +0200
commitdb61e1fea767b2864e3aca482956dd6143177224 (patch)
tree20c1f4b662a0913f0edf82b3ea79393a8bdbaf48 /lint.py
parentcaf3f7c8f1549628f6fb6b6a273481c4e9ca3e9d (diff)
downloadpylint-db61e1fea767b2864e3aca482956dd6143177224.tar.gz
closes #1 (bitbucket): fix "dictionary changed size during iteration" crash
Diffstat (limited to 'lint.py')
-rw-r--r--lint.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lint.py b/lint.py
index 17e7f41..43d25ca 100644
--- a/lint.py
+++ b/lint.py
@@ -711,8 +711,8 @@ This is used by the global evaluation report (RP0004).'}),
if not enable and (warning, line) not in self._ignored_msgs:
self.add_message('I0021', line, None,
(self.get_msg_display_string(warning),))
-
- for (warning, from_), lines in self._ignored_msgs.iteritems():
+ # don't use iteritems here, _ignored_msgs may be modified by add_message
+ for (warning, from_), lines in self._ignored_msgs.items():
for line in lines:
self.add_message('I0020', line, None,
(self.get_msg_display_string(warning), from_))