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
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ class RegexObject:
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,