summaryrefslogtreecommitdiff
path: root/Lib/sre_compile.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-08-03 23:46:19 +0300
committerSerhiy Storchaka <storchaka@gmail.com>2013-08-03 23:46:19 +0300
commit5e376a7809d7efe014f3f9b967a4554d79e10328 (patch)
tree23a3f30bd016be46e8afdbd7b0ffdc18a1d3b0fd /Lib/sre_compile.py
parent3610286f8c6777435a68c9e53b9d6aac5e6cfaa3 (diff)
downloadcpython-git-5e376a7809d7efe014f3f9b967a4554d79e10328.tar.gz
Issue #18647: Temporary disable the "nothing to repeat" check to make buildbots happy.
Diffstat (limited to 'Lib/sre_compile.py')
-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 90e3a25f1a..40d2d520ed 100644
--- a/Lib/sre_compile.py
+++ b/Lib/sre_compile.py
@@ -358,8 +358,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):