diff -r aac4be30e250 -r 2ce60954b1b7 hgext/extdiff.py --- a/hgext/extdiff.py Sat May 26 12:14:04 2018 +0900 +++ b/hgext/extdiff.py Sat May 26 12:20:36 2018 +0900 @@ -71,7 +71,7 @@ import re import shutil import stat -import tempfile + from mercurial.i18n import _ from mercurial.node import ( nullid, @@ -210,7 +210,7 @@ if not common: return 0 - tmproot = tempfile.mkdtemp(prefix='extdiff.') + tmproot = pycompat.mkdtemp(prefix='extdiff.') try: if not opts.get('patch'): # Always make a copy of node1a (and node1b, if applicable)