]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #18647: Temporary disable the "nothing to repeat" check to make buildbots happy.
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 4 Aug 2013 10:22:30 +0000 (13:22 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Sun, 4 Aug 2013 10:22:30 +0000 (13:22 +0300)
Lib/sre_compile.py

index 7cda2b657b80d814bf253ffc4a10f16114da873b..425a1f80cb2dcd50f2a76d207061fc9d406e6e32 100644 (file)
@@ -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):