goto done including 22 tests! vim plugin is not done yet

This commit is contained in:
David Halter
2012-07-28 01:07:19 +02:00
parent f948fceb4b
commit 37c0f7e743
4 changed files with 105 additions and 14 deletions
+3
View File
@@ -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: