mercurial/server.py
changeset 38164 aac4be30e250
parent 37216 d2bd29dffc6c
child 38783 e7aa113b14f7
--- a/mercurial/server.py	Thu May 03 18:39:58 2018 +0900
+++ b/mercurial/server.py	Sat May 26 12:14:04 2018 +0900
@@ -8,7 +8,6 @@
 from __future__ import absolute_import
 
 import os
-import tempfile
 
 from .i18n import _
 
@@ -72,7 +71,7 @@
 
     if opts['daemon'] and not opts['daemon_postexec']:
         # Signal child process startup with file removal
-        lockfd, lockpath = tempfile.mkstemp(prefix='hg-service-')
+        lockfd, lockpath = pycompat.mkstemp(prefix='hg-service-')
         os.close(lockfd)
         try:
             if not runargs: