tried to clean up decorators, but recursions are now a problem

This commit is contained in:
David Halter
2012-07-19 11:19:08 +02:00
parent d91f13ab9b
commit 942cff225b
3 changed files with 84 additions and 41 deletions

View File

@@ -15,9 +15,11 @@ class RecursionDecorator(object):
return self.func(stmt, *args, **kwargs)
r = RecursionNode(stmt, self.current)
"""
if self.check_recursion(r):
debug.warning('catched recursion', stmt, args, kwargs)
return []
"""
parent, self.current = self.current, r
result = self.func(stmt, *args, **kwargs)
self.current = parent