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
1 changed files with 1 additions and 1 deletions

View File

@ -483,7 +483,7 @@ def to_bytes(getters, exclude):
for key, getter in getters.items():
if key not in exclude:
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):