Mercurial > hg-stable
changeset 31492:cad95575dc46
py3: call codecs.escape_decode() directly
The same rule as 3b7a6941a6ef applies.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Fri, 17 Mar 2017 23:48:22 +0900 |
parents | afb335353d28 |
children | 06d3c40fc3e7 |
files | mercurial/util.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/util.py Fri Mar 17 23:42:46 2017 +0900 +++ b/mercurial/util.py Fri Mar 17 23:48:22 2017 +0900 @@ -2138,7 +2138,7 @@ return codecs.escape_encode(s)[0] def unescapestr(s): - return s.decode('string_escape') + return codecs.escape_decode(s)[0] def uirepr(s): # Avoid double backslash in Windows path repr()