mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 14:54:47 +08:00
tried to clean up decorators, but recursions are now a problem
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user