summaryrefslogtreecommitdiff
path: root/utils.py
diff options
context:
space:
mode:
authorSylvain Thénault <sylvain.thenault@logilab.fr>2014-04-29 13:08:19 +0200
committerSylvain Thénault <sylvain.thenault@logilab.fr>2014-04-29 13:08:19 +0200
commitfac0b37f7cc1b9763d5a0e6f8c86e3c1922dc5e4 (patch)
tree1b9203fd7188b8afa8ef02a5615d9ef517dafda1 /utils.py
parent78a3f34aad62f7456529973a80815f4c9e4751a0 (diff)
downloadpylint-git-fac0b37f7cc1b9763d5a0e6f8c86e3c1922dc5e4.tar.gz
fix explicit check of python script. Closes #219
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils.py b/utils.py
index aee119e8d..c6a73713e 100644
--- a/utils.py
+++ b/utils.py
@@ -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