hgext/keyword.py
changeset 38165 2ce60954b1b7
parent 37228 a0b17f744cbc
child 38475 67dc32d4e790
--- a/hgext/keyword.py	Sat May 26 12:14:04 2018 +0900
+++ b/hgext/keyword.py	Sat May 26 12:20:36 2018 +0900
@@ -87,7 +87,6 @@
 
 import os
 import re
-import tempfile
 import weakref
 
 from mercurial.i18n import _
@@ -434,7 +433,7 @@
             ui.write('%s = %s\n' % (k, v))
 
     fn = 'demo.txt'
-    tmpdir = tempfile.mkdtemp('', 'kwdemo.')
+    tmpdir = pycompat.mkdtemp('', 'kwdemo.')
     ui.note(_('creating temporary repository at %s\n') % tmpdir)
     if repo is None:
         baseui = ui