From: Serhiy Storchaka Date: Sat, 3 Aug 2013 20:46:19 +0000 (+0300) Subject: Issue #18647: Temporary disable the "nothing to repeat" check to make buildbots happy. X-Git-Tag: v3.4.0a2~308^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5e376a7809d7efe014f3f9b967a4554d79e10328;p=thirdparty%2FPython%2Fcpython.git Issue #18647: Temporary disable the "nothing to repeat" check to make buildbots happy. --- diff --git a/Lib/sre_compile.py b/Lib/sre_compile.py index 90e3a25f1abe..40d2d520eda2 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):