diff options
| author | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2014-04-29 13:08:19 +0200 |
|---|---|---|
| committer | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2014-04-29 13:08:19 +0200 |
| commit | fac0b37f7cc1b9763d5a0e6f8c86e3c1922dc5e4 (patch) | |
| tree | 1b9203fd7188b8afa8ef02a5615d9ef517dafda1 /utils.py | |
| parent | 78a3f34aad62f7456529973a80815f4c9e4751a0 (diff) | |
| download | pylint-git-fac0b37f7cc1b9763d5a0e6f8c86e3c1922dc5e4.tar.gz | |
fix explicit check of python script. Closes #219
Diffstat (limited to 'utils.py')
| -rw-r--r-- | utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -638,7 +638,7 @@ def expand_modules(files_or_modules, black_list): errors.append({'key': 'fatal', 'mod': modname, 'ex': ex}) continue filepath = normpath(filepath) - result.append({'path': filepath, 'name': modname, + result.append({'path': filepath, 'name': modname, 'isarg': True, 'basepath': filepath, 'basename': modname}) if not (modname.endswith('.__init__') or modname == '__init__') \ and '__init__.py' in filepath: @@ -647,6 +647,7 @@ def expand_modules(files_or_modules, black_list): continue submodname = '.'.join(modpath_from_file(subfilepath)) result.append({'path': subfilepath, 'name': submodname, + 'isarg': False, 'basepath': filepath, 'basename': modname}) return result, errors |
