changeset 43094 | e8cf9ad52a78 |
parent 43086 | bbcbb82e3589 |
child 43106 | d783f945a701 |
--- a/mercurial/templatefilters.py Mon Oct 07 11:51:34 2019 -0400 +++ b/mercurial/templatefilters.py Mon Oct 07 10:58:51 2019 -0400 @@ -367,7 +367,9 @@ """Any text. Returns the input text rendered as a sequence of XML entities. """ - text = pycompat.unicode(text, pycompat.sysstr(encoding.encoding), r'replace') + text = pycompat.unicode( + text, pycompat.sysstr(encoding.encoding), r'replace' + ) return b''.join([b'&#%d;' % ord(c) for c in text])