summaryrefslogtreecommitdiffstats
path: root/Lib/tempfile.py
diff options
context:
space:
mode:
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