summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-08-04 10:22:30 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-08-04 10:22:30 (GMT)
commit06fbac5ea0aaa30020b87b7abe6a094d65bdcd89 (patch)
tree8e789c805701021894756440135be1e8e023dcb9 /Lib
parentd5375dfb15eb369eb2a660c55a450fa3ba30fe66 (diff)
downloadcpython-06fbac5ea0aaa30020b87b7abe6a094d65bdcd89.zip
cpython-06fbac5ea0aaa30020b87b7abe6a094d65bdcd89.tar.gz
cpython-06fbac5ea0aaa30020b87b7abe6a094d65bdcd89.tar.bz2
Issue #18647: Temporary disable the "nothing to repeat" check to make buildbots happy.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/sre_compile.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/sre_compile.py b/Lib/sre_compile.py
index 7cda2b6..425a1f8 100644
--- a/Lib/sre_compile.py
+++ b/Lib/sre_compile.py
@@ -355,8 +355,8 @@ def _optimize_unicode(charset, fixup):
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):