1
0
forked from VimPlug/jedi

Fix tests

This commit is contained in:
Maxim Novikov
2018-01-02 18:24:38 +01:00
parent 78cbad0d08
commit a2031d89b1
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -166,10 +166,11 @@ def _iter_modules(paths, prefix=''):
for path in paths:
importer = pkgutil.get_importer(path)
if importer.path is None or not os.path.isdir(importer.path):
if importer is None or importer.path is None or not os.path.isdir(importer.path):
return
yielded = {}
import inspect
try:
filenames = os.listdir(importer.path)