D7181: py3: make chistedit render

yuja (Yuya Nishihara) phabricator at mercurial-scm.org
Fri Nov 1 09:35:07 EDT 2019


yuja added a comment.


  > +        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.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7181/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7181

To: martinvonz, durin42, #hg-reviewers
Cc: yuja, indygreg, mercurial-devel


More information about the Mercurial-devel mailing list