mercurial/changegroup.py
changeset 38164 aac4be30e250
parent 37339 5859800edfc5
child 38346 83534c4ec58b
--- a/mercurial/changegroup.py	Thu May 03 18:39:58 2018 +0900
+++ b/mercurial/changegroup.py	Sat May 26 12:14:04 2018 +0900
@@ -9,7 +9,6 @@
 
 import os
 import struct
-import tempfile
 import weakref
 
 from .i18n import _
@@ -80,7 +79,7 @@
                 # small (4k is common on Linux).
                 fh = open(filename, "wb", 131072)
         else:
-            fd, filename = tempfile.mkstemp(prefix="hg-bundle-", suffix=".hg")
+            fd, filename = pycompat.mkstemp(prefix="hg-bundle-", suffix=".hg")
             fh = os.fdopen(fd, r"wb")
         cleanup = filename
         for c in chunks: