removed all the weakref stuff again. It didn't speed up anything, but made things much more complicated

This commit is contained in:
David Halter committed 2012-12-09 16:33:24 +01:00
1 parent ac610f97fb
commit 6bdda36205
11 files changed
+119 -124

No files matched your search

+1 -2
View File
@@ -4,7 +4,6 @@ import os
import pkgutil
import imp
import sys
import weakref
import time
import builtin
@@ -84,7 +83,7 @@ class ImportPath(parsing.Base):
zero = (0, 0)
n = parsing.Name(i.namespace.names[1:], zero, zero, self.import_stmt)
new = parsing.Import(zero, zero, n)
new.parent = weakref.ref(parent)
new.parent = parent
evaluate.faked_scopes.append(new)
debug.dbg('Generated a nested import: %s' % new)
return new