solved goto-import problems

This commit is contained in:
David Halter
2012-08-03 00:13:48 +02:00
parent 63c81a0bfe
commit b4d147738f
5 changed files with 32 additions and 9 deletions
+3 -1
View File
@@ -49,7 +49,9 @@ class ImportPath(object):
def get_nested_import(self, parent):
i = self.import_stmt
zero = (1,0)
# This is not an existing Import statement. Therefore, set position to
# None.
zero = (None, None)
n = parsing.Name(i.namespace.names[1:], zero, zero)
new = parsing.Import(zero, zero, n)
new.parent = parent