summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2015-10-10 21:16:53 +0300
committerClaudiu Popa <pcmanticore@gmail.com>2015-10-10 21:16:53 +0300
commit8820499b03603ea5674afe59533b3b54b6dd628a (patch)
tree5d19a2a861c619e85adc4003536588b7b69d5655
parent32305f11c7e3bab9c55be4e8d68404b9d2731edc (diff)
downloadpylint-8820499b03603ea5674afe59533b3b54b6dd628a.tar.gz
Rename the variable to fix an undefined-loop-variable false positive.
-rw-r--r--pylint/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pylint/utils.py b/pylint/utils.py
index 3c943fb..f303411 100644
--- a/pylint/utils.py
+++ b/pylint/utils.py
@@ -308,8 +308,8 @@ class MessagesHandlerMixIn(object):
"""reenable message of the given id"""
assert scope in ('package', 'module')
if msgid == 'all':
- for msgid in MSG_TYPES:
- self.enable(msgid, scope=scope, line=line)
+ for msgid_ in MSG_TYPES:
+ self.enable(msgid_, scope=scope, line=line)
if not self._python3_porting_mode:
# Don't activate the python 3 porting checker if it
# wasn't activated explicitly.