summaryrefslogtreecommitdiff
path: root/utils.py
diff options
context:
space:
mode:
authorSylvain Th?nault <sylvain.thenault@logilab.fr>2013-07-31 09:05:01 +0200
committerSylvain Th?nault <sylvain.thenault@logilab.fr>2013-07-31 09:05:01 +0200
commit7dbb31d36dd0b478fc339549bff1c183a07f6812 (patch)
tree66e30a6dfa3f9ad067e13356f40017014c63e730 /utils.py
parent4292d0103e5bd8a4ef4ede0a290f589a9d94c0fb (diff)
downloadpylint-7dbb31d36dd0b478fc339549bff1c183a07f6812.tar.gz
some pylint and style fixes
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/utils.py b/utils.py
index 65f9669..1895a75 100644
--- a/utils.py
+++ b/utils.py
@@ -277,8 +277,8 @@ class MessagesHandlerMixIn(object):
# msgid is a checker name?
if msgid.lower() in self._checkers:
for checker in self._checkers[msgid.lower()]:
- for msgid in checker.msgs:
- self.enable(msgid, scope, line)
+ for msgid_ in checker.msgs:
+ self.enable(msgid_, scope, line)
return
# msgid is report id?
if msgid.lower().startswith('rp'):
@@ -490,7 +490,7 @@ class MessagesHandlerMixIn(object):
print
-class ReportsHandlerMixIn:
+class ReportsHandlerMixIn(object):
"""a mix-in class containing all the reports and stats manipulation
related methods for the main lint class
"""
@@ -672,11 +672,11 @@ def register_plugins(linter, directory):
"""
imported = {}
for filename in os.listdir(directory):
- basename, extension = splitext(filename)
- if basename in imported or basename == '__pycache__':
+ base, extension = splitext(filename)
+ if base in imported or base == '__pycache__':
continue
- if extension in PY_EXTS and basename != '__init__' or (
- not extension and isdir(join(directory, basename))):
+ if extension in PY_EXTS and base != '__init__' or (
+ not extension and isdir(join(directory, base))):
try:
module = load_module_from_file(join(directory, filename))
except ValueError:
@@ -687,5 +687,5 @@ def register_plugins(linter, directory):
else:
if hasattr(module, 'register'):
module.register(linter)
- imported[basename] = 1
+ imported[base] = 1