D7181: py3: make chistedit render

Yuya Nishihara yuya at tcha.org
Fri Nov 1 09:33:33 EDT 2019


> +        return b"#%s %s %d:%s   %s" % ((b'%d' % self.origpos).ljust(2),
> +                                       action.ljust(6), r, h, desc)
> +
> +    __bytes__ = __str__

`__str__ = encoding.strmethod(__bytes__)` can be used instead. `__str__`
of Python3 must return unicode string.


More information about the Mercurial-devel mailing list