Skip to content

Commit 30b0c6c

Browse files
add pure python logic
1 parent fbaa8ed commit 30b0c6c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

msgpack/fallback.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,8 @@ def _unpack(self, execute=EX_CONSTRUCT):
529529
raise ValueError("%s is not allowed for map key" % str(type(key)))
530530
if isinstance(key, str):
531531
key = sys.intern(key)
532+
if isinstance(key, list):
533+
key = tuple(key)
532534
ret[key] = self._unpack(EX_CONSTRUCT)
533535
if self._object_hook is not None:
534536
ret = self._object_hook(ret)

0 commit comments

Comments
 (0)