Skip to content

Commit 4dcb815

Browse files
committed
fix for encoding=None
1 parent 6135369 commit 4dcb815

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tarantool/schema.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ class SchemaIndex(object):
1515
def __init__(self, array, space):
1616
self.iid = array[1]
1717
self.name = array[2]
18+
if isinstance(self.name, bytes):
19+
self.name = self.name.decode()
1820
self.index = array[3]
1921
self.unique = array[4]
2022
self.parts = []
@@ -36,6 +38,8 @@ def __init__(self, array, schema):
3638
self.sid = array[0]
3739
self.arity = array[1]
3840
self.name = array[2]
41+
if isinstance(self.name, bytes):
42+
self.name = self.name.decode()
3943
self.indexes = {}
4044
self.schema = schema
4145
self.schema[self.sid] = self

0 commit comments

Comments
 (0)