Commit 5e376a78 authored by Serhiy Storchaka's avatar Serhiy Storchaka

Issue #18647: Temporary disable the "nothing to repeat" check to make buildbots happy.

parent 3610286f
......@@ -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):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment