1
0
forked from VimPlug/jedi

Import.paths -> Import.get_paths.

This commit is contained in:
Dave Halter
2017-05-07 15:47:34 +02:00
parent 9bf66b6149
commit 84d8279089
2 changed files with 6 additions and 6 deletions

View File

@@ -342,7 +342,7 @@ class Script(object):
elif isinstance(node, tree.Import):
import_names = set(node.get_defined_names())
if node.is_nested():
import_names |= set(path[-1] for path in node.paths())
import_names |= set(path[-1] for path in node.get_paths())
for n in import_names:
imports.infer_import(context, n)
elif node.type == 'expr_stmt':