hgext/convert/darcs.py
changeset 38165 2ce60954b1b7
parent 36607 c6061cadb400
child 38312 79dd61a4554f
--- a/hgext/convert/darcs.py	Sat May 26 12:14:04 2018 +0900
+++ b/hgext/convert/darcs.py	Sat May 26 12:20:36 2018 +0900
@@ -10,10 +10,11 @@
 import os
 import re
 import shutil
-import tempfile
+
 from mercurial.i18n import _
 from mercurial import (
     error,
+    pycompat,
     util,
 )
 from mercurial.utils import dateutil
@@ -76,7 +77,7 @@
             self.ui.warn(_('failed to detect repository format!'))
 
     def before(self):
-        self.tmppath = tempfile.mkdtemp(
+        self.tmppath = pycompat.mkdtemp(
             prefix='convert-' + os.path.basename(self.path) + '-')
         output, status = self.run('init', repodir=self.tmppath)
         self.checkexit(status)