Author: Maciej Fijalkowski <[email protected]>
Branch: virtual-arguments
Changeset: r56181:52468dc17056
Date: 2012-07-18 18:07 +0200
http://bitbucket.org/pypy/pypy/changeset/52468dc17056/

Log:    and another one

diff --git a/pypy/module/_sre/interp_sre.py b/pypy/module/_sre/interp_sre.py
--- a/pypy/module/_sre/interp_sre.py
+++ b/pypy/module/_sre/interp_sre.py
@@ -458,6 +458,7 @@
         space = self.space
         fmarks = self.flatten_marks()
         num_groups = self.srepat.num_groups
+        assert num_groups >= 0
         result_w = [None] * (num_groups + 1)
         ctx = self.ctx
         result_w[0] = space.newtuple([space.wrap(ctx.match_start),
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to