[Python-checkins] CVS: python/dist/src/Lib tempfile.py,1.21,1.22
Guido van Rossum
python-dev@python.org
Tue, 29 Aug 2000 07:55:06 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory slayer.i.sourceforge.net:/tmp/cvs-serv11762
Modified Files:
tempfile.py
Log Message:
Patch by tg@FreeBSD.org to try /var/tmp first.
This helps on 4.4BSD-based systems.
Index: tempfile.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/tempfile.py,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -r1.21 -r1.22
*** tempfile.py 2000/04/24 13:28:02 1.21
--- tempfile.py 2000/08/29 14:55:03 1.22
***************
*** 24,28 ****
except (AttributeError, os.error):
pwd = os.curdir
! attempdirs = ['/usr/tmp', '/tmp', pwd]
if os.name == 'nt':
attempdirs.insert(0, 'C:\\TEMP')
--- 24,28 ----
except (AttributeError, os.error):
pwd = os.curdir
! attempdirs = ['/var/tmp', '/usr/tmp', '/tmp', pwd]
if os.name == 'nt':
attempdirs.insert(0, 'C:\\TEMP')