[Python-checkins] cpython (3.3): Issue #18647: Temporary disable the "nothing to repeat" check to make buildbots
serhiy.storchaka
python-checkins at python.org
Sat Aug 3 22:48:45 CEST 2013
http://hg.python.org/cpython/rev/c243896e12be
changeset: 85001:c243896e12be
branch: 3.3
parent: 84997:6793ce8e803d
user: Serhiy Storchaka <storchaka at gmail.com>
date: Sat Aug 03 23:46:19 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
@@ -358,8 +358,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