From 55cad2deec05f93ab4d935104d0c72bdb96322d9 Mon Sep 17 00:00:00 2001 From: Erik Osheim Date: Wed, 29 Jul 2009 15:00:17 -0400 Subject: [PATCH] fix lazy-pattern-rule bug --HG-- branch : pmacs2 --- lex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lex.py b/lex.py index 94f98da..45f3882 100755 --- a/lex.py +++ b/lex.py @@ -205,7 +205,7 @@ class LazyPatternRule(Rule): def __init__(self, name, pattern): Rule.__init__(self, name) self.pattern = pattern - self.d = {} + self._compile({}) def _compile(self, d): try: self.re = re.compile(self.pattern % d, self.reflags)