D5091: formatter: fix debugformatter on Python 3
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Sun Oct 14 07:53:28 UTC 2018
durin42 created this revision.
durin42 added a reviewer: mbthomas.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5091
AFFECTED FILES
mercurial/formatter.py
CHANGE DETAILS
diff --git a/mercurial/formatter.py b/mercurial/formatter.py
--- a/mercurial/formatter.py
+++ b/mercurial/formatter.py
@@ -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")
To: durin42, mbthomas, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list