From 06fbac5ea0aaa30020b87b7abe6a094d65bdcd89 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sun, 4 Aug 2013 13:22:30 +0300 Subject: Issue #18647: Temporary disable the "nothing to repeat" check to make buildbots happy. --- Lib/sre_compile.py | 4 ++-- 1 file 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): -- cgit v0.12