match: fix bug caused by refactoring in fb457d08da0b

This commit is contained in:
Peter Arrenbrecht 2011-06-23 14:40:57 +02:00
parent c1d402dc5f
commit aa36fb062f

View File

@ -282,8 +282,8 @@ def _buildregexmatch(pats, tail):
l = len(pats)
if l < 2:
raise
pata, a = _buildmatch(pats[:l//2], tail)
patb, b = _buildmatch(pats[l//2:], tail)
pata, a = _buildregexmatch(pats[:l//2], tail)
patb, b = _buildregexmatch(pats[l//2:], tail)
return pat, lambda s: a(s) or b(s)
except re.error:
for k, p in pats: