Mercurial > public > mercurial-scm > hg-stable
diff mercurial/formatter.py @ 36078:0fb0c304ebd6
py3: cast repr() result to bytes
Differential Revision: https://phab.mercurial-scm.org/D2141
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sun, 11 Feb 2018 14:21:44 -0800 |
parents | 817a3d20dd01 |
children | b44fac3a49fb |
line wrap: on
line diff
--- 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")