summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2005-06-02 13:35:52 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2005-06-02 13:35:52 (GMT)
commitc30faa812c507c94d744419bce7c497f1a283d95 (patch)
tree83f8416690045c225c1039e5759174519e5a3b23
parent5f937a7b8b1ba766ffada44d27f84ab1a43dc980 (diff)
downloadcpython-c30faa812c507c94d744419bce7c497f1a283d95.zip
cpython-c30faa812c507c94d744419bce7c497f1a283d95.tar.gz
cpython-c30faa812c507c94d744419bce7c497f1a283d95.tar.bz2
[Bug #1177831] Fix generation of code for GROUPREF_EXISTS. Thanks to Andre Malo for the fix.
-rw-r--r--Lib/sre_compile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/sre_compile.py b/Lib/sre_compile.py
index d3eb3c1..1d448da 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]: