[Python-checkins] cpython (2.7): Issue #18647: Temporary disable the "nothing to repeat" check to make buildbots
serhiy.storchaka
python-checkins at python.org
Sun Aug 4 12:23:13 CEST 2013
http://hg.python.org/cpython/rev/e2ba4592ce3a
changeset: 85017:e2ba4592ce3a
branch: 2.7
parent: 85000:ee0bdc007a0f
user: Serhiy Storchaka <storchaka at gmail.com>
date: Sun Aug 04 13:22:30 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
@@ -355,8 +355,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