summaryrefslogtreecommitdiffstats
path: root/Lib/sre_compile.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-08-03 20:47:48 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-08-03 20:47:48 (GMT)
commit3efad82b055df8a9f3713412e315addba1612394 (patch)
tree2c2ed6ff29d5f7623c711eb87461ab77f1a556cc /Lib/sre_compile.py
parent7e53793023516f93efbc501ac0dd7d5f4e44a643 (diff)
parent5e376a7809d7efe014f3f9b967a4554d79e10328 (diff)
downloadcpython-3efad82b055df8a9f3713412e315addba1612394.zip
cpython-3efad82b055df8a9f3713412e315addba1612394.tar.gz
cpython-3efad82b055df8a9f3713412e315addba1612394.tar.bz2
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 ea6e6be..429d779 100644
--- a/Lib/sre_compile.py
+++ b/Lib/sre_compile.py
@@ -351,8 +351,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):