Commits

Anonymous committed 4d58c0f

In the experimental 'Scanner' feature, the group count was set wrong.

  • Participants
  • Parent commits f2f9916
  • Branches 2.5

Comments (0)

Files changed (1)

             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 = []