mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-02-06 09:50:01 +00:00
add pure python logic
This commit is contained in:
parent
fbaa8ed6c8
commit
30b0c6c507
1 changed files with 2 additions and 0 deletions
|
|
@ -529,6 +529,8 @@ class Unpacker:
|
|||
raise ValueError("%s is not allowed for map key" % str(type(key)))
|
||||
if isinstance(key, str):
|
||||
key = sys.intern(key)
|
||||
if isinstance(key, list):
|
||||
key = tuple(key)
|
||||
ret[key] = self._unpack(EX_CONSTRUCT)
|
||||
if self._object_hook is not None:
|
||||
ret = self._object_hook(ret)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue