mercurial/templatefilters.py
changeset 37222 54355c243042
parent 37155 fb7140f1d09d
child 37223 08e042f0a67c
--- a/mercurial/templatefilters.py	Mon Mar 19 20:39:06 2018 +0900
+++ b/mercurial/templatefilters.py	Sun Mar 18 15:14:58 2018 +0900
@@ -354,12 +354,12 @@
 def stringescape(text):
     return stringutil.escapestr(text)
 
-@templatefilter('stringify')
+@templatefilter('stringify', intype=bytes)
 def stringify(thing):
     """Any type. Turns the value into text by converting values into
     text and concatenating them.
     """
-    return templateutil.stringify(thing)
+    return thing  # coerced by the intype
 
 @templatefilter('stripdir')
 def stripdir(text):