1
0
forked from VimPlug/jedi

Fix some small import stuff and the whole ordering tests.

This commit is contained in:
Dave Halter
2016-11-11 00:45:16 +01:00
parent 14a8377817
commit 052f6bf9e7
9 changed files with 44 additions and 28 deletions

View File

@@ -44,6 +44,6 @@ def usages_add_import_modules(evaluator, definitions):
for d in definitions:
imp_or_stmt = d.get_definition()
if isinstance(imp_or_stmt, tree.Import):
s = imports.ImportWrapper(evaluator, d)
s = imports.ImportWrapper(context, d)
new |= set(s.follow(is_goto=True))
return set(definitions) | new