mercurial/formatter.py
changeset 40274 a8b9174517c7
parent 40140 46f9b1d2daf0
child 40277 1159031ada1e
--- a/mercurial/formatter.py	Thu Sep 27 16:56:15 2018 +0200
+++ b/mercurial/formatter.py	Sun Oct 14 06:51:19 2018 +0200
@@ -129,7 +129,10 @@
     templateutil,
     util,
 )
-from .utils import dateutil
+from .utils import (
+    dateutil,
+    stringutil,
+)
 
 pickle = util.pickle
 
@@ -321,7 +324,7 @@
         self._out = out
         self._out.write("%s = [\n" % self._topic)
     def _showitem(self):
-        self._out.write('    %s,\n' % pycompat.byterepr(self._item))
+        self._out.write('    %s,\n' % stringutil.pprint(self._item))
     def end(self):
         baseformatter.end(self)
         self._out.write("]\n")