Author: Philip Jenvey <[email protected]> Branch: py3k Changeset: r70642:672f831a77d7 Date: 2014-04-15 16:10 -0700 http://bitbucket.org/pypy/pypy/changeset/672f831a77d7/
Log: adapt http://hg.python.org/cpython/rev/f4271cc2dfb5 from cpython-3.3: we already match 3.3's _sre.MAXREPEAT value for 32 bit, so we also need this associated fix diff --git a/lib-python/3/sre_compile.py b/lib-python/3/sre_compile.py --- a/lib-python/3/sre_compile.py +++ b/lib-python/3/sre_compile.py @@ -13,7 +13,6 @@ import _sre, sys import sre_parse from sre_constants import * -from _sre import MAXREPEAT assert _sre.MAGIC == MAGIC, "SRE module mismatch" @@ -356,8 +355,6 @@ def _simple(av): # check if av is a "simple" operator lo, hi = av[2].getwidth() - if lo == 0 and hi == MAXREPEAT: - raise error("nothing to repeat") return lo == hi == 1 and av[2][0][0] != SUBPATTERN def _compile_info(code, pattern, flags): _______________________________________________ pypy-commit mailing list [email protected] https://mail.python.org/mailman/listinfo/pypy-commit
