This commit is contained in:
yumoqing 2024-08-08 18:09:06 +08:00
parent c5a399ed22
commit f8e5234ac5

View File

@ -14,7 +14,7 @@ import win32api
import sys import sys
def temp_file(suffix=None, prefix=None, dir=None, text=False): def temp_file(suffix=None, prefix=None, dir=None, text=False):
x = tempfile.mkstemp(suffix=suffix, prefix=frefix, dir=dir, text=text) x = tempfile.mkstemp(suffix=suffix, prefix=prefix, dir=dir, text=text)
os.close(x[0]) os.close(x[0])
return x[1] return x[1]