bugfix
This commit is contained in:
parent
4381c9e572
commit
c5a399ed22
@ -13,8 +13,8 @@ import win32api
|
|||||||
"""
|
"""
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
def temp_file(suffix='.txt'):
|
def temp_file(suffix=None, prefix=None, dir=None, text=False):
|
||||||
x = tempfile.mkstemp(suffix=suffix)
|
x = tempfile.mkstemp(suffix=suffix, prefix=frefix, dir=dir, text=text)
|
||||||
os.close(x[0])
|
os.close(x[0])
|
||||||
return x[1]
|
return x[1]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user