##// END OF EJS Templates
py3: system-stringify repr(frame)...
Yuya Nishihara -
r37492:d3399712 default
parent child Browse files
Show More
@@ -19,6 +19,7 b' from .thirdparty import ('
19 cbor,
19 cbor,
20 )
20 )
21 from . import (
21 from . import (
22 encoding,
22 error,
23 error,
23 util,
24 util,
24 )
25 )
@@ -142,6 +143,7 b' class frame(object):'
142 flags = attr.ib()
143 flags = attr.ib()
143 payload = attr.ib()
144 payload = attr.ib()
144
145
146 @encoding.strmethod
145 def __repr__(self):
147 def __repr__(self):
146 typename = '<unknown 0x%02x>' % self.typeid
148 typename = '<unknown 0x%02x>' % self.typeid
147 for name, value in FRAME_TYPES.iteritems():
149 for name, value in FRAME_TYPES.iteritems():
General Comments 0
You need to be logged in to leave comments. Login now