diff -r b39958d6b81b -r aac4be30e250 mercurial/statprof.py --- a/mercurial/statprof.py Thu May 03 18:39:58 2018 +0900 +++ b/mercurial/statprof.py Sat May 26 12:14:04 2018 +0900 @@ -112,7 +112,6 @@ import os import signal import sys -import tempfile import threading import time @@ -691,7 +690,7 @@ file=fp) return - fd, path = tempfile.mkstemp() + fd, path = pycompat.mkstemp() file = open(path, "w+")