mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-17 05:49:37 +08:00
goto done including 22 tests! vim plugin is not done yet
This commit is contained in:
@@ -132,6 +132,7 @@ class ImportPath(object):
|
||||
f = builtin.Parser(name=path)
|
||||
|
||||
return f.parser.top, rest
|
||||
ImportPath2 = ImportPath
|
||||
|
||||
def strip_imports(scopes):
|
||||
"""
|
||||
@@ -141,6 +142,8 @@ def strip_imports(scopes):
|
||||
result = []
|
||||
for s in scopes:
|
||||
if isinstance(s, parsing.Import):
|
||||
# this is something like a statement following.
|
||||
evaluate.statement_path.append(s)
|
||||
try:
|
||||
result += ImportPath(s).follow()
|
||||
except ModuleNotFound:
|
||||
|
||||
Reference in New Issue
Block a user