[Python-checkins] python/dist/src/Lib tempfile.py,1.56,1.57
loewis at users.sourceforge.net
loewis at users.sourceforge.net
Sun Oct 12 13:37:03 EDT 2003
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv17091/Lib
Modified Files:
tempfile.py
Log Message:
Patch #810914: Return absolute path for mkstemp. Fixes #810408.
This should not be backported to 2.3, as it might break backwards
compatibility.
Index: tempfile.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/tempfile.py,v
retrieving revision 1.56
retrieving revision 1.57
diff -C2 -d -r1.56 -r1.57
*** tempfile.py 22 Jul 2003 02:50:01 -0000 1.56
--- tempfile.py 12 Oct 2003 17:37:01 -0000 1.57
***************
*** 215,219 ****
fd = _os.open(file, flags, 0600)
_set_cloexec(fd)
! return (fd, file)
except OSError, e:
if e.errno == _errno.EEXIST:
--- 215,219 ----
fd = _os.open(file, flags, 0600)
_set_cloexec(fd)
! return (fd, _os.path.abspath(file))
except OSError, e:
if e.errno == _errno.EEXIST:
More information about the Python-checkins
mailing list