summaryrefslogtreecommitdiffstats
path: root/Lib/tempfile.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2003-10-12 17:37:01 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2003-10-12 17:37:01 (GMT)
commitd662548c728e5e1da15d5594a8b6e751213002f8 (patch)
tree92a8e88d48e7e2caca4d7292e0ed5dde1a6ff60c /Lib/tempfile.py
parent411c60234974da975b0b1fbf62e362a31f6e4b3c (diff)
downloadcpython-d662548c728e5e1da15d5594a8b6e751213002f8.zip
cpython-d662548c728e5e1da15d5594a8b6e751213002f8.tar.gz
cpython-d662548c728e5e1da15d5594a8b6e751213002f8.tar.bz2
Patch #810914: Return absolute path for mkstemp. Fixes #810408.
This should not be backported to 2.3, as it might break backwards compatibility.
Diffstat (limited to 'Lib/tempfile.py')
-rw-r--r--Lib/tempfile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/tempfile.py b/Lib/tempfile.py
index 756d8c8..472fd83 100644
--- a/Lib/tempfile.py
+++ b/Lib/tempfile.py
@@ -214,7 +214,7 @@ def _mkstemp_inner(dir, pre, suf, flags):
try:
fd = _os.open(file, flags, 0600)
_set_cloexec(fd)
- return (fd, file)
+ return (fd, _os.path.abspath(file))
except OSError, e:
if e.errno == _errno.EEXIST:
continue # try again