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

View File

@@ -121,7 +121,7 @@ def search_params(evaluator, param):
for params in get_posibilities(evaluator, module, func_name):
for p in params:
if str(p) == param_name:
result += evaluator.eval_statement(p.parent)
result += evaluator.eval_statement(p.get_definition())
return result
func = param.get_parent_until(pr.Function)

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