mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
Remove deprecated encoding argument to msgpack
This commit is contained in:
parent
bae6b3e2b3
commit
8809dc4514
|
@ -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, encoding='utf8')
|
||||
return msgpack.dumps(serialized, use_bin_type=True)
|
||||
|
||||
|
||||
def from_bytes(bytes_data, setters, exclude):
|
||||
|
|
Loading…
Reference in New Issue
Block a user