COMPAT: Decode bytes object for Python 3.
This commit is contained in:
parent
f271af488b
commit
ee7e8b6e8a
@ -517,7 +517,7 @@ class Booster(object):
|
|||||||
int(with_stats), ctypes.byref(length))
|
int(with_stats), ctypes.byref(length))
|
||||||
res = []
|
res = []
|
||||||
for i in range(length.value):
|
for i in range(length.value):
|
||||||
res.append(str(sarr[i]))
|
res.append(str(sarr[i].decode('ascii')))
|
||||||
return res
|
return res
|
||||||
|
|
||||||
def get_fscore(self, fmap=''):
|
def get_fscore(self, fmap=''):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user