1
0
forked from VimPlug/jedi

probably half of the tests are running again.

This commit is contained in:
David Halter
2012-08-12 02:09:10 +02:00
parent 3ae7d3f278
commit 673cb30ee8
4 changed files with 25 additions and 5 deletions

View File

@@ -4,6 +4,7 @@ import os
import pkgutil
import imp
import sys
import weakref
import builtin
import modules
@@ -61,7 +62,8 @@ class ImportPath(object):
zero = (None, None)
n = parsing.Name(i.namespace.names[1:], zero, zero)
new = parsing.Import(zero, zero, n)
new.parent = lambda: parent
new.parent = weakref.ref(parent)
evaluate.faked_scopes.append(new)
debug.dbg('Generated a nested import: %s' % new)
return new