mercurial/bundlerepo.py
changeset 38198 2ce60954b1b7
parent 37717 0664be4f0c1f
child 38889 6104b203bec8
--- a/mercurial/bundlerepo.py	Sat May 26 12:14:04 2018 +0900
+++ b/mercurial/bundlerepo.py	Sat May 26 12:20:36 2018 +0900
@@ -15,7 +15,6 @@
 
 import os
 import shutil
-import tempfile
 
 from .i18n import _
 from .node import nullid
@@ -270,7 +269,7 @@
         try:
             localrepo.localrepository.__init__(self, ui, repopath)
         except error.RepoError:
-            self._tempparent = tempfile.mkdtemp()
+            self._tempparent = pycompat.mkdtemp()
             localrepo.instance(ui, self._tempparent, 1)
             localrepo.localrepository.__init__(self, ui, self._tempparent)
         self.ui.setconfig('phases', 'publish', False, 'bundlerepo')