Mercurial > public > mercurial-scm > hg-stable
diff mercurial/util.py @ 36299:1fa33bd848ee
py3: fix bytes-unicode dance while building docstring of extdiff
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 17 Feb 2018 18:14:51 +0900 |
parents | d879aab17786 |
children | 01e29e885600 |
line wrap: on
line diff
--- a/mercurial/util.py Sat Feb 17 18:09:56 2018 +0900 +++ b/mercurial/util.py Sat Feb 17 18:14:51 2018 +0900 @@ -2427,7 +2427,7 @@ def uirepr(s): # Avoid double backslash in Windows path repr() - return repr(s).replace('\\\\', '\\') + return pycompat.byterepr(pycompat.bytestr(s)).replace(b'\\\\', b'\\') # delay import of textwrap def MBTextWrapper(**kwargs):