From 0d9a6282e797a352473dedf4ffc03cc85d4b2636 Mon Sep 17 00:00:00 2001 From: David Halter Date: Fri, 24 Aug 2012 18:21:43 +0200 Subject: [PATCH] little change in recursion decorator, ignored nodes should be ignored for both sides of __eq__ --- helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helpers.py b/helpers.py index 05050027..ac8099cf 100644 --- a/helpers.py +++ b/helpers.py @@ -12,7 +12,6 @@ class RecursionDecorator(object): def __init__(self, func): self.func = func self.reset() - self.current = None def __call__(self, stmt, *args, **kwargs): if self.push_stmt(stmt): @@ -72,7 +71,8 @@ class RecursionNode(object): if not other: return None 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):