diff mercurial/templatefilters.py @ 43094:e8cf9ad52a78

formatting: run black on all file again Apparently, since the blackgnarok, we divergence from the expected formatting. Formatted using:: grey.py -S $(hg files 'set:**.py - mercurial/thirdparty/** - "contrib/python-zstandard/**" - hgext/fsmonitor/pywatchman/** - contrib/grey.py') # skip-blame mass-reformatting only # no-check-commit reformats foo_bar functions
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 07 Oct 2019 10:58:51 -0400
parents bbcbb82e3589
children d783f945a701
line wrap: on
line diff
--- 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])