1
0
forked from VimPlug/jedi

Only real modules should be added in get_modules_containing_name.

This commit is contained in:
Dave Halter
2014-09-19 18:05:57 +02:00
parent e0f84ccb86
commit 78bd775889
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -605,5 +605,5 @@ def get_modules_containing_name(mods, name):
for p in sorted(paths):
# make testing easier, sort it - same results on every interpreter
c = check_python_file(p)
if c is not None and c not in mods:
if c is not None and c not in mods and not isinstance(c, compiled.CompiledObject):
yield c