properties work now also with initialization values of classes

This commit is contained in:
David Halter
2012-07-10 17:52:46 +02:00
parent e4739fddf9
commit 53358b28d3
5 changed files with 26 additions and 9 deletions

View File

@@ -1,4 +1,5 @@
import parsing
import debug
class RecursionDecorator(object):
""" A decorator to detect recursions in statements """
@@ -14,6 +15,7 @@ class RecursionDecorator(object):
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)