mirror of
https://github.com/python/cpython
synced 2026-09-29 09:05:29 +03:00
reapplied darryl gallion's minimizing repeat fix. I'm still not 100%
sure about this one, but test #133283 now works even with the fix in place, and so does the test suite. we'll see what comes up...
This commit is contained in:
parent
cb9be93955
commit
df781e6a3f
3 changed files with 4 additions and 2 deletions
|
|
@ -1104,7 +1104,7 @@ SRE_MATCH(SRE_STATE* state, SRE_CODE* pattern, int level)
|
|||
/* see if the tail matches */
|
||||
state->repeat = rp->prev;
|
||||
/* FIXME: the following fix doesn't always work (#133283) */
|
||||
if (0 && rp->pattern[2] == 65535) {
|
||||
if (rp->pattern[2] == 65535) {
|
||||
/* unbounded repeat */
|
||||
for (;;) {
|
||||
i = SRE_MATCH(state, pattern, level + 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue