hgext/extdiff.py
changeset 36266 1fa33bd848ee
parent 36204 33ed8b511185
child 36267 08f061a48a8f
--- a/hgext/extdiff.py	Sat Feb 17 18:09:56 2018 +0900
+++ b/hgext/extdiff.py	Sat Feb 17 18:14:51 2018 +0900
@@ -366,7 +366,7 @@
         # We can't pass non-ASCII through docstrings (and path is
         # in an unknown encoding anyway)
         docpath = util.escapestr(path)
-        self.__doc__ = self.__doc__ % {'path': util.uirepr(docpath)}
+        self.__doc__ %= {r'path': pycompat.sysstr(util.uirepr(docpath))}
         self._cmdline = cmdline
 
     def __call__(self, ui, repo, *pats, **opts):