|
|
@ -139,7 +139,7 @@ def _cbor_decode(cbor):
|
|
|
|
return (data[0:ln], data[ln:])
|
|
|
|
return (data[0:ln], data[ln:])
|
|
|
|
elif fb_type == _CBOR_TEXT_STRING:
|
|
|
|
elif fb_type == _CBOR_TEXT_STRING:
|
|
|
|
ln, data = _read_length(cbor[1:], fb_aux)
|
|
|
|
ln, data = _read_length(cbor[1:], fb_aux)
|
|
|
|
return (data[0:ln].decode(), data[ln:])
|
|
|
|
return (bytes(data[0:ln]).decode(), data[ln:])
|
|
|
|
elif fb_type == _CBOR_ARRAY:
|
|
|
|
elif fb_type == _CBOR_ARRAY:
|
|
|
|
if fb_aux == _CBOR_VAR_FOLLOWS:
|
|
|
|
if fb_aux == _CBOR_VAR_FOLLOWS:
|
|
|
|
res = []
|
|
|
|
res = []
|
|
|
|