diff options
| author | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2013-04-16 12:59:36 +0200 |
|---|---|---|
| committer | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2013-04-16 12:59:36 +0200 |
| commit | db61e1fea767b2864e3aca482956dd6143177224 (patch) | |
| tree | 20c1f4b662a0913f0edf82b3ea79393a8bdbaf48 /lint.py | |
| parent | caf3f7c8f1549628f6fb6b6a273481c4e9ca3e9d (diff) | |
| download | pylint-db61e1fea767b2864e3aca482956dd6143177224.tar.gz | |
closes #1 (bitbucket): fix "dictionary changed size during iteration" crash
Diffstat (limited to 'lint.py')
| -rw-r--r-- | lint.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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_)) |
