From: Andrew M. Kuchling Date: Thu, 2 Jun 2005 13:35:52 +0000 (+0000) Subject: [Bug #1177831] Fix generation of code for GROUPREF_EXISTS. Thanks to Andre Malo... X-Git-Tag: v2.5a0~1760 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c30faa812c507c94d744419bce7c497f1a283d95;p=thirdparty%2FPython%2Fcpython.git [Bug #1177831] Fix generation of code for GROUPREF_EXISTS. Thanks to Andre Malo for the fix. --- diff --git a/Lib/sre_compile.py b/Lib/sre_compile.py index d3eb3c1e5f3a..1d448dae2ac4 100644 --- a/Lib/sre_compile.py +++ b/Lib/sre_compile.py @@ -167,7 +167,7 @@ def _compile(code, pattern, flags): emit(av-1) elif op is GROUPREF_EXISTS: emit(OPCODES[op]) - emit((av[0]-1)*2) + emit(av[0]-1) skipyes = _len(code); emit(0) _compile(code, av[1], flags) if av[2]: