Fix generators.
This commit is contained in:
1 parent
13a128b160
commit
278bc9d705
4 files changed
+19
-6
No files matched your search
@@ -100,12 +100,12 @@ class _RecursionNode(object):
|
||||
|
||||
|
||||
def execution_recursion_decorator(func):
|
||||
def run(execution):
|
||||
def run(execution, **kwargs):
|
||||
detector = execution._evaluator.execution_recursion_detector
|
||||
if detector.push_execution(execution):
|
||||
result = []
|
||||
else:
|
||||
result = func(execution)
|
||||
result = func(execution, **kwargs)
|
||||
detector.pop_execution()
|
||||
return result
|
||||
|
||||
|
||||
Reference in new issue
Block a user