forked from VimPlug/jedi
fixed bug in recursion detection (not really a fix, I don't understand why this happens only in python3)
This commit is contained in:
@@ -36,7 +36,10 @@ class RecursionDecorator(object):
|
||||
return False
|
||||
|
||||
def pop_stmt(self):
|
||||
self.current = self.current.parent
|
||||
if self.current is not None:
|
||||
# I don't know how current can be None, but sometimes it happens
|
||||
# with Python3.
|
||||
self.current = self.current.parent
|
||||
|
||||
def _check_recursion(self):
|
||||
test = self.current
|
||||
|
||||
Reference in New Issue
Block a user