[Python-checkins] python/dist/src/Lib sre_compile.py,1.43,1.44
loewis@users.sourceforge.net
loewis@users.sourceforge.net
Thu, 26 Sep 2002 09:39:22 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv13722/Lib
Modified Files:
sre_compile.py
Log Message:
Disable big charsets in UCS-4 builds. Works around #599377.
Will backport to 2.2
Index: sre_compile.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/sre_compile.py,v
retrieving revision 1.43
retrieving revision 1.44
diff -C2 -d -r1.43 -r1.44
*** sre_compile.py 27 Jun 2002 20:08:25 -0000 1.43
--- sre_compile.py 26 Sep 2002 16:39:20 -0000 1.44
***************
*** 189,192 ****
--- 189,195 ----
return charset # cannot compress
except IndexError:
+ if sys.maxunicode != 65535:
+ # XXX: big charsets don't work in UCS-4 builds
+ return charset
# character set contains unicode characters
return _optimize_unicode(charset, fixup)