mirror of
https://github.com/python/cpython.git
synced 2025-08-29 13:15:11 +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)
|
||||
if regs is None:
|
||||
return None
|
||||
self.num_regs=len(regs)/2
|
||||
self.num_regs=len(regs)
|
||||
return MatchObject(self,
|
||||
string,
|
||||
pos,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue