[Python-checkins] python/dist/src/Lib tempfile.py,1.45,1.46

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
2002年8月13日 16:38:32 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv32236/python/Lib
Modified Files:
	tempfile.py 
Log Message:
mkstemp(): The optional "binary" argument is clearly intended to be a
Boolean, so changed its default value from 1 to True.
Index: tempfile.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/tempfile.py,v
retrieving revision 1.45
retrieving revision 1.46
diff -C2 -d -r1.45 -r1.46
*** tempfile.py	13 Aug 2002 23:36:01 -0000	1.45
--- tempfile.py	13 Aug 2002 23:38:30 -0000	1.46
***************
*** 251,255 ****
 return tempdir
 
! def mkstemp(suffix="", prefix=template, dir=gettempdir(), binary=1):
 """mkstemp([suffix, [prefix, [dir, [binary]]]])
 User-callable function to create and return a unique temporary
--- 251,255 ----
 return tempdir
 
! def mkstemp(suffix="", prefix=template, dir=gettempdir(), binary=True):
 """mkstemp([suffix, [prefix, [dir, [binary]]]])
 User-callable function to create and return a unique temporary

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