Skip to content
Snippets Groups Projects
Commit f9012f03 authored by Alexander Schlemmer's avatar Alexander Schlemmer
Browse files

MAINT: reverted correct implementation of variable scopes due to remaining problems with debug_tree

parent 86172df7
Branches
Tags
1 merge request!53Release 0.1
...@@ -810,11 +810,17 @@ class Crawler(object): ...@@ -810,11 +810,17 @@ class Crawler(object):
scoped_records = recordStore.get_records_current_scope() scoped_records = recordStore.get_records_current_scope()
for record in scoped_records: for record in scoped_records:
self.updateList.append(record) self.updateList.append(record)
# TODO: the scoped variables should be cleaned up as soon if the variables
# are no longer in the current scope. This can be implemented as follows,
# but this breaks the test "test_record_structure_generation", because
# some debug info is also deleted. This implementation can be used as soon
# as the remaining problems with the debug_tree are fixed.
# Delete the variables that are no longer needed: # Delete the variables that are no longer needed:
scoped_names = recordStore.get_names_current_scope() # scoped_names = recordStore.get_names_current_scope()
for name in scoped_names: # for name in scoped_names:
del recordStore[name] # del recordStore[name]
del generalStore[name] # del generalStore[name]
return self.updateList return self.updateList
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment