mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix de-serialization with msgpack 1.0
This commit is contained in:
parent
ccff50fae2
commit
0ff41ac649
@ -110,7 +110,7 @@ def msgpack_decoder(code, data):
|
|||||||
def msgpack_loads(dump, use_list=True):
|
def msgpack_loads(dump, use_list=True):
|
||||||
# use_list controls whether msgpack arrays are unpacked as lists or tuples
|
# use_list controls whether msgpack arrays are unpacked as lists or tuples
|
||||||
import msgpack
|
import msgpack
|
||||||
return msgpack.unpackb(dump, ext_hook=msgpack_decoder, raw=False, use_list=use_list)
|
return msgpack.unpackb(dump, ext_hook=msgpack_decoder, raw=False, use_list=use_list, strict_map_key=False)
|
||||||
|
|
||||||
|
|
||||||
def json_loads(data):
|
def json_loads(data):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user