Mercurial > public > mercurial-scm > hg-stable
diff mercurial/templatefilters.py @ 31460: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 | 032c4c2f802a |
children | 35eb8f112c88 |
line wrap: on
line diff
--- a/mercurial/templatefilters.py Mon Mar 13 09:24:53 2017 -0700 +++ b/mercurial/templatefilters.py Wed Mar 15 23:06:50 2017 +0900 @@ -345,7 +345,7 @@ @templatefilter('stringescape') def stringescape(text): - return text.encode('string_escape') + return util.escapestr(text) @templatefilter('stringify') def stringify(thing):