Submitter | Yuya Nishihara |
---|---|
Date | April 8, 2018, 8:59 a.m. |
Message ID | <9a35569ef5ab58c975f5.1523177983@mimosa> |
Download | mbox | patch |
Permalink | /patch/30554/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/wireprotoframing.py b/mercurial/wireprotoframing.py --- a/mercurial/wireprotoframing.py +++ b/mercurial/wireprotoframing.py @@ -19,6 +19,7 @@ from .thirdparty import ( cbor, ) from . import ( + encoding, error, util, ) @@ -142,6 +143,7 @@ class frame(object): flags = attr.ib() payload = attr.ib() + @encoding.strmethod def __repr__(self): typename = '<unknown 0x%02x>' % self.typeid for name, value in FRAME_TYPES.iteritems():