Merge pull request #269 from jseabold/decode-string-py3
Good, python3 compatibility is indeed something we need to be careful about
This commit is contained in:
commit
6783b66b9f
@ -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