Restore encoding arg on msgpack-numpy

This commit is contained in:
Matthew Honnibal 2018-09-27 15:58:21 +02:00
parent 276aa83d1a
commit 6430b1fe64

View File

@ -483,7 +483,7 @@ def to_bytes(getters, exclude):
for key, getter in getters.items(): for key, getter in getters.items():
if key not in exclude: if key not in exclude:
serialized[key] = getter() serialized[key] = getter()
return msgpack.dumps(serialized, use_bin_type=True) return msgpack.dumps(serialized, use_bin_type=True, encoding='utf8')
def from_bytes(bytes_data, setters, exclude): def from_bytes(bytes_data, setters, exclude):