summaryrefslogtreecommitdiff
path: root/utils.py
diff options
context:
space:
mode:
authorSylvain Thénault <sylvain.thenault@logilab.fr>2012-09-19 17:36:47 +0200
committerSylvain Thénault <sylvain.thenault@logilab.fr>2012-09-19 17:36:47 +0200
commitbaa64bef67973cbc9fb5d28757e92c8438a2fc26 (patch)
treef31ca7a8059cb2a5216061b7d4170166abe16f47 /utils.py
parent2ee2abbccc3ab35a4318b17ab0b8ce836993d8f8 (diff)
downloadpylint-git-baa64bef67973cbc9fb5d28757e92c8438a2fc26.tar.gz
lint fixes
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/utils.py b/utils.py
index 09f3e22ba..5661d7620 100644
--- a/utils.py
+++ b/utils.py
@@ -20,7 +20,6 @@ main pylint class
import sys
from warnings import warn
-from os import linesep
from os.path import dirname, basename, splitext, exists, isdir, join, normpath
from logilab.common.modutils import modpath_from_file, get_module_files, \
@@ -176,14 +175,14 @@ class MessagesHandlerMixIn:
# msgid is a category?
catid = category_id(msgid)
if catid is not None:
- for msgid in self._msgs_by_category.get(catid):
- self.disable(msgid, scope, line)
+ for _msgid in self._msgs_by_category.get(catid):
+ self.disable(_msgid, scope, line)
return
# msgid is a checker name?
if msgid.lower() in self._checkers:
for checker in self._checkers[msgid.lower()]:
- for msgid in checker.msgs:
- self.disable(msgid, scope, line)
+ for _msgid in checker.msgs:
+ self.disable(_msgid, scope, line)
return
# msgid is report id?
if msgid.lower().startswith('rp'):