hgext/extdiff.py
changeset 31451 53865692a354
parent 30982 08e6f4dac2ca
child 32217 affd753ddaf1
--- a/hgext/extdiff.py	Mon Mar 13 09:24:53 2017 -0700
+++ b/hgext/extdiff.py	Wed Mar 15 23:06:50 2017 +0900
@@ -342,7 +342,7 @@
     def __init__(self, path, cmdline):
         # We can't pass non-ASCII through docstrings (and path is
         # in an unknown encoding anyway)
-        docpath = path.encode("string-escape")
+        docpath = util.escapestr(path)
         self.__doc__ = self.__doc__ % {'path': util.uirepr(docpath)}
         self._cmdline = cmdline