Fix a recursion issue and add a test.

This commit is contained in:
Dave Halter
2016-07-27 19:15:03 +02:00
parent a6dd7bf822
commit 0a4e858d88
5 changed files with 15 additions and 5 deletions

View File

@@ -15,7 +15,6 @@ from jedi.evaluate import iterable
def recursion_decorator(func):
def run(evaluator, stmt, *args, **kwargs):
rec_detect = evaluator.recursion_detector
# print stmt, len(self.node_statements())
if rec_detect.push_stmt(stmt):
return set()
else: