From 43cdc50e82f8750b5448e4bcf0dc5ca902ec673f Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Thu, 7 May 2020 20:58:48 +0100 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20use=20deprecated=20mktemp,=20us?= =?UTF-8?q?e=20mkstemp=20instead?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MetaTools/roundTrip.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MetaTools/roundTrip.py b/MetaTools/roundTrip.py index d02ec4a5e..f9094ab04 100755 --- a/MetaTools/roundTrip.py +++ b/MetaTools/roundTrip.py @@ -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)