diff -r b39958d6b81b -r aac4be30e250 mercurial/changegroup.py --- 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: