[Python-checkins] python/dist/src/Lib sre_compile.py, 1.56, 1.56.2.1

akuchling@users.sourceforge.net akuchling at users.sourceforge.net
Thu Jun 2 15:40:14 CEST 2005


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4768/Lib

Modified Files:
      Tag: release24-maint
	sre_compile.py 
Log Message:
[Bug #1177831] Fix (?(id)yes|no) for a group other than the first one, and add a test case

Index: sre_compile.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/sre_compile.py,v
retrieving revision 1.56
retrieving revision 1.56.2.1
diff -u -d -r1.56 -r1.56.2.1
--- sre_compile.py	15 Oct 2004 06:15:08 -0000	1.56
+++ sre_compile.py	2 Jun 2005 13:40:12 -0000	1.56.2.1
@@ -156,7 +156,7 @@
             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]:



More information about the Python-checkins mailing list