[Python-checkins] cpython (merge 3.3 -> default): Issue #18647: Temporary disable the "nothing to repeat" check to make buildbots
serhiy.storchaka
python-checkins at python.org
Sat Aug 3 22:48:46 CEST 2013
http://hg.python.org/cpython/rev/4faf9b73c3df
changeset: 85002:4faf9b73c3df
parent: 84999:e9cecb612ff7
parent: 85001:c243896e12be
user: Serhiy Storchaka <storchaka at gmail.com>
date: Sat Aug 03 23:47:48 2013 +0300
summary:
Issue #18647: Temporary disable the "nothing to repeat" check to make buildbots happy.
files:
Lib/sre_compile.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Lib/sre_compile.py b/Lib/sre_compile.py
--- a/Lib/sre_compile.py
+++ b/Lib/sre_compile.py
@@ -351,8 +351,8 @@
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")
+ #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):
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list