mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Issue #18647: Temporary disable the "nothing to repeat" check to make buildbots happy.
This commit is contained in:
parent
3610286f8c
commit
5e376a7809
1 changed files with 2 additions and 2 deletions
|
@ -358,8 +358,8 @@ def _optimize_unicode(charset, fixup):
|
||||||
def _simple(av):
|
def _simple(av):
|
||||||
# check if av is a "simple" operator
|
# check if av is a "simple" operator
|
||||||
lo, hi = av[2].getwidth()
|
lo, hi = av[2].getwidth()
|
||||||
if lo == 0 and hi == MAXREPEAT:
|
#if lo == 0 and hi == MAXREPEAT:
|
||||||
raise error("nothing to repeat")
|
# raise error("nothing to repeat")
|
||||||
return lo == hi == 1 and av[2][0][0] != SUBPATTERN
|
return lo == hi == 1 and av[2][0][0] != SUBPATTERN
|
||||||
|
|
||||||
def _compile_info(code, pattern, flags):
|
def _compile_info(code, pattern, flags):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue