diff -r b39958d6b81b -r aac4be30e250 mercurial/vfs.py --- a/mercurial/vfs.py Thu May 03 18:39:58 2018 +0900 +++ b/mercurial/vfs.py Sat May 26 12:14:04 2018 +0900 @@ -11,7 +11,6 @@ import os import shutil import stat -import tempfile import threading from .i18n import _ @@ -171,7 +170,7 @@ return os.mkdir(self.join(path)) def mkstemp(self, suffix='', prefix='tmp', dir=None): - fd, name = tempfile.mkstemp(suffix=suffix, prefix=prefix, + fd, name = pycompat.mkstemp(suffix=suffix, prefix=prefix, dir=self.join(dir)) dname, fname = util.split(name) if dir: