byte string fix in coreapi, different approach to urlparse compatibility to avoid other issues
This commit is contained in:
parent
c4c1a10f05
commit
f5efecabf0
2 changed files with 3 additions and 9 deletions
|
@ -748,13 +748,11 @@ class CoreMessage(object):
|
|||
:return: packed data
|
||||
:rtype: str
|
||||
"""
|
||||
tlv_data = ""
|
||||
keys = sorted(self.tlv_data.keys())
|
||||
|
||||
tlv_data = b""
|
||||
for key in keys:
|
||||
value = self.tlv_data[key]
|
||||
tlv_data += self.tlv_class.pack(key, value)
|
||||
|
||||
return tlv_data
|
||||
|
||||
def repack(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue