hgext/extdiff.py
changeset 37087 f0b6fbea00cf
parent 36789 ffa3026d4196
child 37123 a8a902d7176e
--- a/hgext/extdiff.py	Thu Mar 22 21:19:31 2018 +0900
+++ b/hgext/extdiff.py	Thu Mar 22 21:56:20 2018 +0900
@@ -82,6 +82,9 @@
     scmutil,
     util,
 )
+from mercurial.utils import (
+    stringutil,
+)
 
 cmdtable = {}
 command = registrar.command(cmdtable)
@@ -367,8 +370,8 @@
     def __init__(self, path, cmdline):
         # We can't pass non-ASCII through docstrings (and path is
         # in an unknown encoding anyway)
-        docpath = util.escapestr(path)
-        self.__doc__ %= {r'path': pycompat.sysstr(util.uirepr(docpath))}
+        docpath = stringutil.escapestr(path)
+        self.__doc__ %= {r'path': pycompat.sysstr(stringutil.uirepr(docpath))}
         self._cmdline = cmdline
 
     def __call__(self, ui, repo, *pats, **opts):