[Python-checkins] CVS: python/dist/src/Lib sre_compile.py,1.33,1.34
Fredrik Lundh
effbot@users.sourceforge.net
Mon, 15 Jan 2001 10:28:16 -0800
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv15656/Lib
Modified Files:
sre_compile.py
Log Message:
from the really-stupid-bug department: uppercase literals should match
uppercase strings also when the IGNORECASE flag is set (bug #128899)
(also added test cases for recently fixed bugs to the regression suite
-- or in other words, check in re_tests.py too...)
Index: sre_compile.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/sre_compile.py,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -r1.33 -r1.34
*** sre_compile.py 2001/01/15 12:46:09 1.33
--- sre_compile.py 2001/01/15 18:28:14 1.34
***************
*** 24,30 ****
if flags & SRE_FLAG_IGNORECASE:
emit(OPCODES[OP_IGNORE[op]])
else:
emit(OPCODES[op])
! emit(av)
elif op is IN:
if flags & SRE_FLAG_IGNORECASE:
--- 24,31 ----
if flags & SRE_FLAG_IGNORECASE:
emit(OPCODES[OP_IGNORE[op]])
+ emit(_sre.getlower(av, flags))
else:
emit(OPCODES[op])
! emit(av)
elif op is IN:
if flags & SRE_FLAG_IGNORECASE: