mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Bugfix in match() -- the number of registers shouldn't be divided by two!
This commit is contained in:
parent
e6eef4b4a3
commit
af8d2bf4d8
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ class RegexObject:
|
||||||
regs = self.code.match(string, pos, ANCHORED)
|
regs = self.code.match(string, pos, ANCHORED)
|
||||||
if regs is None:
|
if regs is None:
|
||||||
return None
|
return None
|
||||||
self.num_regs=len(regs)/2
|
self.num_regs=len(regs)
|
||||||
return MatchObject(self,
|
return MatchObject(self,
|
||||||
string,
|
string,
|
||||||
pos,
|
pos,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue