updated protobuf to use string instead of bytes for 2/3 compatibility for now, updated default service in grpc tests, fixed byte string issues for python3 in coreapi
This commit is contained in:
parent
7efec88e79
commit
69b1297002
5 changed files with 23 additions and 23 deletions
|
@ -219,12 +219,12 @@ class CoreTlvDataUint16List(CoreTlvData):
|
|||
if not isinstance(values, tuple):
|
||||
raise ValueError("value not a tuple: %s" % values)
|
||||
|
||||
data = ""
|
||||
data = b""
|
||||
for value in values:
|
||||
data += struct.pack(cls.data_format, value)
|
||||
|
||||
pad_len = -(CoreTlv.header_len + len(data)) % 4
|
||||
return len(data), data + "\0" * pad_len
|
||||
return len(data), data + b"\0" * pad_len
|
||||
|
||||
@classmethod
|
||||
def unpack(cls, data):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue