commit | 9decb7034973a5ed7587c797e8c8e893e92a0460 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Tue Feb 05 17:27:23 2008 +0000 |
committer | Guido van Rossum <guido@python.org> | Tue Feb 05 17:27:23 2008 +0000 |
tree | b2f3d2b9f489dff1846c5d86fc176cffd8a40a31 | |
parent | 42993fef1ca4b97563a77a8c07b4c312f5c52862 [diff] |
In the experimental 'Scanner' feature, the group count was set wrong.
diff --git a/Lib/re.py b/Lib/re.py index a33e34e..90956f3 100644 --- a/Lib/re.py +++ b/Lib/re.py
@@ -290,8 +290,8 @@ p.append(sre_parse.SubPattern(s, [ (SUBPATTERN, (len(p)+1, sre_parse.parse(phrase, flags))), ])) + s.groups = len(p)+1 p = sre_parse.SubPattern(s, [(BRANCH, (None, p))]) - s.groups = len(p) self.scanner = sre_compile.compile(p) def scan(self, string): result = []