mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
gh-51574: Make tempfile.mkdtemp() always return absolute paths (#94612)
Co-authored-by: Éric <merwok@netwok.org> Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
This commit is contained in:
parent
c8c3956d90
commit
32bea69b89
5 changed files with 19 additions and 3 deletions
|
@ -376,7 +376,7 @@ def mkdtemp(suffix=None, prefix=None, dir=None):
|
|||
continue
|
||||
else:
|
||||
raise
|
||||
return file
|
||||
return _os.path.abspath(file)
|
||||
|
||||
raise FileExistsError(_errno.EEXIST,
|
||||
"No usable temporary directory name found")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue