changeset 38164 | aac4be30e250 |
parent 37832 | 6169d95dce3b |
child 38239 | ead71b15efd5 |
--- 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: