summaryrefslogtreecommitdiff
path: root/lint.py
diff options
context:
space:
mode:
authorSylvain Thénault <sylvain.thenault@logilab.fr>2008-05-13 11:52:44 +0200
committerSylvain Thénault <sylvain.thenault@logilab.fr>2008-05-13 11:52:44 +0200
commitc4b7a6f7f90f918e60ced25eefe31da171bf7cf8 (patch)
tree5b05a9b31988356400d2325b24995fcc55082b35 /lint.py
parent58ab68be5205ffd0e2a328bf14319110b03e00ce (diff)
downloadpylint-git-c4b7a6f7f90f918e60ced25eefe31da171bf7cf8.tar.gz
fix #2473: invoking pylint on __init__.py (hopefuly)
Diffstat (limited to 'lint.py')
-rw-r--r--lint.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lint.py b/lint.py
index 85d946374..402aedef7 100644
--- a/lint.py
+++ b/lint.py
@@ -531,7 +531,8 @@ This is used by the global evaluation report (R0004).'}),
filepath = normpath(filepath)
result.append( {'path': filepath, 'name': modname,
'basepath': filepath, 'basename': modname} )
- if not modname.endswith('.__init__') and '__init__.py' in filepath:
+ if not (modname.endswith('.__init__') or modname == '__init__') \
+ and '__init__.py' in filepath:
for subfilepath in get_module_files(dirname(filepath),
self.config.black_list):
if filepath == subfilepath: