From 6f6a666d99e9266a9c03484253a8a51047c12551 Mon Sep 17 00:00:00 2001 From: moculus Date: Sat, 5 Apr 2008 18:38:06 +0000 Subject: [PATCH] comment and small optimization --HG-- branch : pmacs2 --- lex.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lex.py b/lex.py index 0254947..8363e03 100755 --- a/lex.py +++ b/lex.py @@ -49,12 +49,13 @@ class Token(object): self.string += s def end_x(self): return self.x + len(self.string) + # note that if parent is not none, then this is recursive def __eq__(self, other): return (other is not None and self.y == other.y and self.x == other.x and self.name == other.name and - self.parent == other.parent and - self.string == other.string) + self.string == other.string and + self.parent == other.parent) def __repr__(self): if len(self.string) < 10: s = self.string