From: Guido van Rossum Date: Mon, 27 Oct 1997 18:17:19 +0000 (+0000) Subject: Bugfix in match() -- the number of registers shouldn't be divided by two! X-Git-Tag: v1.5b1~153 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=af8d2bf4d8643f7da7389a475f364c21836e8afe;p=python Bugfix in match() -- the number of registers shouldn't be divided by two! --- diff --git a/Lib/re.py b/Lib/re.py index 420f6ed7e1..bf74808377 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,