[pypy-commit] pypy virtual-arguments: and another one
fijal
noreply at buildbot.pypy.org
Wed Jul 18 18:08:12 CEST 2012
Author: Maciej Fijalkowski <fijall at gmail.com>
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),
More information about the pypy-commit
mailing list