[Python-checkins] CVS: python/dist/src/Lib types.py,1.24,1.25

Martin v. L?wis loewis@users.sourceforge.net
2001年12月02日 04:08:08 -0800


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv29198
Modified Files:
	types.py 
Log Message:
Patch #487455: make types.StringTypes a tuple.
Index: types.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/types.py,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** types.py	2001年10月29日 22:25:44	1.24
--- types.py	2001年12月02日 12:08:06	1.25
***************
*** 27,33 ****
 try:
 UnicodeType = unicode
! StringTypes = [StringType, UnicodeType]
 except NameError:
! StringTypes = [StringType]
 
 BufferType = type(buffer(''))
--- 27,33 ----
 try:
 UnicodeType = unicode
! StringTypes = (StringType, UnicodeType)
 except NameError:
! StringTypes = (StringType,)
 
 BufferType = type(buffer(''))

AltStyle によって変換されたページ (->オリジナル) /