diff --git a/Lib/re.py b/Lib/re.py index 420f6ed7e1a..bf74808377b 100644 --- a/Lib/re.py +++ b/Lib/re.py @@ -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,