1
0
forked from VimPlug/jedi

Usage fixes for imports.

This commit is contained in:
Dave Halter
2016-11-19 03:05:10 +01:00
parent b77fa58058
commit e79ebe3ee7
3 changed files with 32 additions and 29 deletions

View File

@@ -501,7 +501,12 @@ def get_modules_containing_name(evaluator, modules, name):
# skip non python modules
used_mod_paths = set()
for m in modules:
used_mod_paths.add(m.py__file__())
try:
path = m.py__file__()
except AttributeError:
pass
else:
used_mod_paths.add(path)
yield m
if not settings.dynamic_params_for_other_modules: