--- 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")