diff options
author | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2008-05-13 11:52:44 +0200 |
---|---|---|
committer | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2008-05-13 11:52:44 +0200 |
commit | c4b7a6f7f90f918e60ced25eefe31da171bf7cf8 (patch) | |
tree | 5b05a9b31988356400d2325b24995fcc55082b35 /lint.py | |
parent | 58ab68be5205ffd0e2a328bf14319110b03e00ce (diff) | |
download | pylint-git-c4b7a6f7f90f918e60ced25eefe31da171bf7cf8.tar.gz |
fix #2473: invoking pylint on __init__.py (hopefuly)
Diffstat (limited to 'lint.py')
-rw-r--r-- | lint.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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: |