mercurial/formatter.py
changeset 36040 0fb0c304ebd6
parent 35483 817a3d20dd01
child 36265 b44fac3a49fb
--- a/mercurial/formatter.py	Sun Feb 11 13:00:00 2018 -0800
+++ b/mercurial/formatter.py	Sun Feb 11 14:21:44 2018 -0800
@@ -291,7 +291,7 @@
         self._out = out
         self._out.write("%s = [\n" % self._topic)
     def _showitem(self):
-        self._out.write("    " + repr(self._item) + ",\n")
+        self._out.write('    %s,\n' % pycompat.sysbytes(repr(self._item)))
     def end(self):
         baseformatter.end(self)
         self._out.write("]\n")