forked from VimPlug/jedi
little change in recursion decorator, ignored nodes should be ignored for both sides of __eq__
This commit is contained in:
@@ -12,7 +12,6 @@ class RecursionDecorator(object):
|
|||||||
def __init__(self, func):
|
def __init__(self, func):
|
||||||
self.func = func
|
self.func = func
|
||||||
self.reset()
|
self.reset()
|
||||||
self.current = None
|
|
||||||
|
|
||||||
def __call__(self, stmt, *args, **kwargs):
|
def __call__(self, stmt, *args, **kwargs):
|
||||||
if self.push_stmt(stmt):
|
if self.push_stmt(stmt):
|
||||||
@@ -72,7 +71,8 @@ class RecursionNode(object):
|
|||||||
if not other:
|
if not other:
|
||||||
return None
|
return None
|
||||||
return self.script == other.script \
|
return self.script == other.script \
|
||||||
and self.position == other.position and not self.is_ignored
|
and self.position == other.position \
|
||||||
|
and not self.is_ignored and not other.is_ignored
|
||||||
|
|
||||||
|
|
||||||
def fast_parent_copy(obj):
|
def fast_parent_copy(obj):
|
||||||
|
|||||||
Reference in New Issue
Block a user