1
0
forked from VimPlug/jedi

Avoid import recursions in other ways

This commit is contained in:
Dave Halter
2019-08-24 01:20:37 +02:00
parent 250ac77f4a
commit 6d361e03ac
4 changed files with 9 additions and 19 deletions
+2 -1
View File
@@ -95,7 +95,8 @@ def goto_import(context, tree_name):
analysis_errors=False
) for c in values
])
if names:
# Avoid recursion on the same names.
if names and not any(n.tree_name is tree_name for n in names):
return names
path = import_path + (from_import_name,)