mercurial/debugcommands.py
changeset 38166 cc9aa88792fe
parent 38164 aac4be30e250
child 38239 ead71b15efd5
--- a/mercurial/debugcommands.py	Sat May 26 12:20:36 2018 +0900
+++ b/mercurial/debugcommands.py	Sat May 26 12:38:07 2018 +0900
@@ -21,7 +21,6 @@
 import string
 import subprocess
 import sys
-import tempfile
 import time
 
 from .i18n import _
@@ -970,7 +969,7 @@
     ui.write(('hardlink: %s\n') % (util.checknlink(path) and 'yes' or 'no'))
     casesensitive = '(unknown)'
     try:
-        with tempfile.NamedTemporaryFile(prefix='.debugfsinfo', dir=path) as f:
+        with pycompat.namedtempfile(prefix='.debugfsinfo', dir=path) as f:
             casesensitive = util.fscasesensitive(f.name) and 'yes' or 'no'
     except OSError:
         pass