Mercurial > public > mercurial-scm > hg-stable
diff mercurial/formatter.py @ 36298:b44fac3a49fb
py3: factor out byterepr() which returns an asciified value on py3
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 17 Feb 2018 18:09:56 +0900 |
parents | 0fb0c304ebd6 |
children | e8d37838f5df |
line wrap: on
line diff
--- a/mercurial/formatter.py Thu Feb 15 17:14:45 2018 +0530 +++ b/mercurial/formatter.py Sat Feb 17 18:09:56 2018 +0900 @@ -291,7 +291,7 @@ self._out = out self._out.write("%s = [\n" % self._topic) def _showitem(self): - self._out.write(' %s,\n' % pycompat.sysbytes(repr(self._item))) + self._out.write(' %s,\n' % pycompat.byterepr(self._item)) def end(self): baseformatter.end(self) self._out.write("]\n")