COMPAT: Decode bytes object for Python 3.

This commit is contained in:
Skipper Seabold 2015-04-27 12:41:24 -05:00
parent f271af488b
commit ee7e8b6e8a

View File

@ -517,7 +517,7 @@ class Booster(object):
int(with_stats), ctypes.byref(length))
res = []
for i in range(length.value):
res.append(str(sarr[i]))
res.append(str(sarr[i].decode('ascii')))
return res
def get_fscore(self, fmap=''):