byte string fix in coreapi, different approach to urlparse compatibility to avoid other issues

This commit is contained in:
bharnden 2019-06-03 21:22:11 -07:00
parent c4c1a10f05
commit f5efecabf0
2 changed files with 3 additions and 9 deletions

View file

@ -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):