Mercurial > public > mercurial-scm > hg
diff hgext/extdiff.py @ 31451:53865692a354
util: wrap s.encode('string_escape') call for future py3 compatibility
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Wed, 15 Mar 2017 23:06:50 +0900 |
parents | 08e6f4dac2ca |
children | affd753ddaf1 |
line wrap: on
line diff
--- 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