diff -r b39958d6b81b -r aac4be30e250 mercurial/httppeer.py --- a/mercurial/httppeer.py Thu May 03 18:39:58 2018 +0900 +++ b/mercurial/httppeer.py Sat May 26 12:14:04 2018 +0900 @@ -13,7 +13,6 @@ import os import socket import struct -import tempfile import weakref from .i18n import _ @@ -519,7 +518,7 @@ filename = None try: # dump bundle to disk - fd, filename = tempfile.mkstemp(prefix="hg-bundle-", suffix=".hg") + fd, filename = pycompat.mkstemp(prefix="hg-bundle-", suffix=".hg") fh = os.fdopen(fd, r"wb") d = fp.read(4096) while d: