fix lazy-pattern-rule bug

--HG--
branch : pmacs2
This commit is contained in:
Erik Osheim 2009-07-29 15:00:17 -04:00
parent e51eef3ae7
commit 55cad2deec
1 changed files with 1 additions and 1 deletions

2
lex.py
View File

@ -205,7 +205,7 @@ class LazyPatternRule(Rule):
def __init__(self, name, pattern): def __init__(self, name, pattern):
Rule.__init__(self, name) Rule.__init__(self, name)
self.pattern = pattern self.pattern = pattern
self.d = {} self._compile({})
def _compile(self, d): def _compile(self, d):
try: try:
self.re = re.compile(self.pattern % d, self.reflags) self.re = re.compile(self.pattern % d, self.reflags)