Bugfix in match() -- the number of registers shouldn't be divided by two!

This commit is contained in:
Guido van Rossum 1997-10-27 18:17:19 +00:00
parent e6eef4b4a3
commit af8d2bf4d8

View file

@ -86,7 +86,7 @@ def match(self, string, pos=0):
regs = self.code.match(string, pos, ANCHORED)
if regs is None:
return None
self.num_regs=len(regs)/2
self.num_regs=len(regs)
return MatchObject(self,
string,
pos,