diff options
author | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2012-09-19 17:36:47 +0200 |
---|---|---|
committer | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2012-09-19 17:36:47 +0200 |
commit | baa64bef67973cbc9fb5d28757e92c8438a2fc26 (patch) | |
tree | f31ca7a8059cb2a5216061b7d4170166abe16f47 /utils.py | |
parent | 2ee2abbccc3ab35a4318b17ab0b8ce836993d8f8 (diff) | |
download | pylint-git-baa64bef67973cbc9fb5d28757e92c8438a2fc26.tar.gz |
lint fixes
Diffstat (limited to 'utils.py')
-rw-r--r-- | utils.py | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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'): |