Details
Details
- Reviewers
- None
- Group Reviewers
hg-reviewers - Commits
- rHG0fb0c304ebd6: py3: cast repr() result to bytes
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
hg-reviewers |
Lint Skipped |
Unit Tests Skipped |
Path | Packages | |||
---|---|---|---|---|
M | mercurial/formatter.py (2 lines) |
Status | Author | Revision | |
---|---|---|---|
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Needs Revision | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg |
pass | pass | ||||
class debugformatter(baseformatter): | class debugformatter(baseformatter): | ||||
def __init__(self, ui, out, topic, opts): | def __init__(self, ui, out, topic, opts): | ||||
baseformatter.__init__(self, ui, topic, opts, _nullconverter) | baseformatter.__init__(self, ui, topic, opts, _nullconverter) | ||||
self._out = out | self._out = out | ||||
self._out.write("%s = [\n" % self._topic) | self._out.write("%s = [\n" % self._topic) | ||||
def _showitem(self): | def _showitem(self): | ||||
self._out.write(" " + repr(self._item) + ",\n") | self._out.write(' %s,\n' % pycompat.sysbytes(repr(self._item))) | ||||
def end(self): | def end(self): | ||||
baseformatter.end(self) | baseformatter.end(self) | ||||
self._out.write("]\n") | self._out.write("]\n") | ||||
class pickleformatter(baseformatter): | class pickleformatter(baseformatter): | ||||
def __init__(self, ui, out, topic, opts): | def __init__(self, ui, out, topic, opts): | ||||
baseformatter.__init__(self, ui, topic, opts, _nullconverter) | baseformatter.__init__(self, ui, topic, opts, _nullconverter) | ||||
self._out = out | self._out = out |