1
0
forked from VimPlug/jedi

Name lookups shouldn't return duplicates.

This commit is contained in:
Dave Halter
2015-10-10 20:01:03 +02:00
parent f77712ddf1
commit bf3fa11f6f
2 changed files with 5 additions and 5 deletions

View File

@@ -332,7 +332,7 @@ class Script(object):
:rtype: list of :class:`classes.Definition`
"""
def resolve_import_paths(scopes):
for s in scopes.copy():
for s in set(scopes):
if isinstance(s, imports.ImportWrapper):
scopes.remove(s)
scopes.update(resolve_import_paths(set(s.follow())))