mirror of
https://github.com/python/cpython.git
synced 2025-10-15 03:10:29 +00:00
[Bug #1177831] Fix generation of code for GROUPREF_EXISTS. Thanks to Andre Malo for the fix.
This commit is contained in:
parent
5f937a7b8b
commit
c30faa812c
1 changed files with 1 additions and 1 deletions
|
@ -167,7 +167,7 @@ def _compile(code, pattern, flags):
|
||||||
emit(av-1)
|
emit(av-1)
|
||||||
elif op is GROUPREF_EXISTS:
|
elif op is GROUPREF_EXISTS:
|
||||||
emit(OPCODES[op])
|
emit(OPCODES[op])
|
||||||
emit((av[0]-1)*2)
|
emit(av[0]-1)
|
||||||
skipyes = _len(code); emit(0)
|
skipyes = _len(code); emit(0)
|
||||||
_compile(code, av[1], flags)
|
_compile(code, av[1], flags)
|
||||||
if av[2]:
|
if av[2]:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue