6 lines
103 B
Python
6 lines
103 B
Python
|
|
fd, path = tempfile.mkstemp()
|
||
|
|
try:
|
||
|
|
# use the path or the file descriptor
|
||
|
|
finally:
|
||
|
|
os.close(fd)
|