Mercurial > hg-stable
changeset 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 | c1e01b1d5543 |
children | e3674c2a585c |
files | mercurial/formatter.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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")