Don’t use deprecated mktemp, use mkstemp instead
This commit is contained in:
parent
63df810c5e
commit
43cdc50e82
@ -31,9 +31,9 @@ def usage():
|
||||
|
||||
def roundTrip(ttFile1, options, report):
|
||||
fn = os.path.basename(ttFile1)
|
||||
xmlFile1 = tempfile.mktemp(".%s.ttx1" % fn)
|
||||
ttFile2 = tempfile.mktemp(".%s" % fn)
|
||||
xmlFile2 = tempfile.mktemp(".%s.ttx2" % fn)
|
||||
xmlFile1 = tempfile.mkstemp(".%s.ttx1" % fn)
|
||||
ttFile2 = tempfile.mkstemp(".%s" % fn)
|
||||
xmlFile2 = tempfile.mkstemp(".%s.ttx2" % fn)
|
||||
|
||||
try:
|
||||
ttx.ttDump(ttFile1, xmlFile1, options)
|
||||
|
Loading…
x
Reference in New Issue
Block a user