Skip to content

Commit 29f7e15

Browse files
authored
Revert breaking change in #126 (#128)
[IG-23065](https://iguazio.atlassian.net/browse/IG-23065)
1 parent 51cf9a7 commit 29f7e15

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

v3io/dataplane/kv_array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def encode_array(array_value, typecode):
3939
"II" + typecode * num_items, num_items * 8, operand_type, *array_value
4040
)
4141

42-
return base64.b64encode(encoded_array).decode("utf-8")
42+
return base64.b64encode(encoded_array)
4343

4444

4545
def decode(encoded_array):

v3io/dataplane/request.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,10 +454,10 @@ def _dict_to_typed_attributes(d):
454454
type_value = value
455455
elif isinstance(value, list):
456456
type_key = "B"
457-
type_value = v3io.dataplane.kv_array.encode_list(value)
457+
type_value = v3io.dataplane.kv_array.encode_list(value).decode("utf-8")
458458
elif isinstance(value, array.array):
459459
type_key = "B"
460-
type_value = v3io.dataplane.kv_array.encode_array(value, value.typecode)
460+
type_value = v3io.dataplane.kv_array.encode_array(value, value.typecode).decode("utf-8")
461461
elif isinstance(value, datetime.datetime):
462462
type_key = "TS"
463463
type_value = v3io.dataplane.kv_timestamp.encode(value)

0 commit comments

Comments
 (0)