Mercurial > hg
changeset 37474:d33997123ea5
py3: system-stringify repr(frame)
That's the Py3 requirement.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 08 Apr 2018 11:23:55 +0900 |
parents | 7c2c7c749411 |
children | 152f1b47e0ad |
files | mercurial/wireprotoframing.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/wireprotoframing.py Sun Apr 08 11:21:58 2018 +0900 +++ b/mercurial/wireprotoframing.py Sun Apr 08 11:23:55 2018 +0900 @@ -19,6 +19,7 @@ cbor, ) from . import ( + encoding, error, util, ) @@ -142,6 +143,7 @@ flags = attr.ib() payload = attr.ib() + @encoding.strmethod def __repr__(self): typename = '<unknown 0x%02x>' % self.typeid for name, value in FRAME_TYPES.iteritems():