use weakrefs for parents now: rest

This commit is contained in:
David Halter
2012-08-12 01:42:37 +02:00
parent a2611c5db6
commit 3ae7d3f278
4 changed files with 8 additions and 9 deletions

View File

@@ -946,6 +946,7 @@ def get_scopes_for_name(scope, name_str, position=None, search_global=False):
and scope.var == name.parent().parent():
name = InstanceElement(scope.instance, name)
par = name.parent()
print name, par
if par.isinstance(parsing.Flow):
if par.command == 'for':
result += handle_for_loops(par)