[Python-checkins] python/dist/src/Lib tempfile.py,1.40,1.41
tim_one@users.sourceforge.net
tim_one@users.sourceforge.net
2002年8月09日 11:00:29 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv2327/python/Lib
Modified Files:
tempfile.py
Log Message:
Whitespace normalization.
Index: tempfile.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/tempfile.py,v
retrieving revision 1.40
retrieving revision 1.41
diff -C2 -d -r1.40 -r1.41
*** tempfile.py 9 Aug 2002 16:14:32 -0000 1.40
--- tempfile.py 9 Aug 2002 18:00:27 -0000 1.41
***************
*** 59,67 ****
_text_openflags = _os.O_RDWR | _os.O_CREAT | _os.O_EXCL
! if hasattr(_os, 'O_NOINHERIT'): _text_openflags |= _os.O_NOINHERIT
! if hasattr(_os, 'O_NOFOLLOW'): _text_openflags |= _os.O_NOFOLLOW
_bin_openflags = _text_openflags
! if hasattr(_os, 'O_BINARY'): _bin_openflags |= _os.O_BINARY
if hasattr(_os, 'TMP_MAX'):
--- 59,70 ----
_text_openflags = _os.O_RDWR | _os.O_CREAT | _os.O_EXCL
! if hasattr(_os, 'O_NOINHERIT'):
! _text_openflags |= _os.O_NOINHERIT
! if hasattr(_os, 'O_NOFOLLOW'):
! _text_openflags |= _os.O_NOFOLLOW
_bin_openflags = _text_openflags
! if hasattr(_os, 'O_BINARY'):
! _bin_openflags |= _os.O_BINARY
if hasattr(_os, 'TMP_MAX'):
***************
*** 178,182 ****
return dirlist
!
def _get_default_tempdir():
"""Calculate the default directory to use for temporary files.
--- 181,185 ----
return dirlist
!
def _get_default_tempdir():
"""Calculate the default directory to use for temporary files.
***************
*** 240,244 ****
raise IOError, (_errno.EEXIST, "No usable temporary file name found")
!
# User visible interfaces.
--- 243,247 ----
raise IOError, (_errno.EEXIST, "No usable temporary file name found")
!
# User visible interfaces.
***************
*** 303,307 ****
names = _get_candidate_names()
!
for seq in xrange(TMP_MAX):
name = names.next()
--- 306,310 ----
names = _get_candidate_names()
!
for seq in xrange(TMP_MAX):
name = names.next()