[Python-checkins] python/dist/src/Lib sre_parse.py,1.51,1.51.6.1
loewis@users.sourceforge.net
loewis@users.sourceforge.net
Sat, 19 Apr 2003 01:39:07 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv8605/Lib
Modified Files:
Tag: release22-maint
sre_parse.py
Log Message:
Patch #681152: Support escaped unicode characters in classes. Fixes 612074.
Index: sre_parse.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/sre_parse.py,v
retrieving revision 1.51
retrieving revision 1.51.6.1
diff -C2 -d -r1.51 -r1.51.6.1
*** sre_parse.py 9 Dec 2001 16:13:15 -0000 1.51
--- sre_parse.py 19 Apr 2003 08:39:04 -0000 1.51.6.1
***************
*** 255,259 ****
raise error, "bogus escape: %s" % repr("\\" + escape)
return LITERAL, atoi(escape, 16) & 0xff
! elif str(escape[1:2]) in OCTDIGITS:
# octal escape (up to three digits)
while source.next in OCTDIGITS and len(escape) < 5:
--- 255,259 ----
raise error, "bogus escape: %s" % repr("\\" + escape)
return LITERAL, atoi(escape, 16) & 0xff
! elif escape[1:2] in OCTDIGITS:
# octal escape (up to three digits)
while source.next in OCTDIGITS and len(escape) < 5: