diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-08-03 20:47:48 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-08-03 20:47:48 (GMT) |
commit | 3efad82b055df8a9f3713412e315addba1612394 (patch) | |
tree | 2c2ed6ff29d5f7623c711eb87461ab77f1a556cc /Lib | |
parent | 7e53793023516f93efbc501ac0dd7d5f4e44a643 (diff) | |
parent | 5e376a7809d7efe014f3f9b967a4554d79e10328 (diff) | |
download | cpython-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')
-rw-r--r-- | Lib/sre_compile.py | 4 |
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): |