We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 887f102 commit 08400e0Copy full SHA for 08400e0
1 file changed
msgpack/fallback.py
@@ -529,7 +529,7 @@ def _unpack(self, execute=EX_CONSTRUCT):
529
raise ValueError("%s is not allowed for map key" % str(type(key)))
530
if isinstance(key, str):
531
key = sys.intern(key)
532
- elif isinstance(key, list):
+ elif type(key) is list:
533
key = tuple(key)
534
ret[key] = self._unpack(EX_CONSTRUCT)
535
if self._object_hook is not None:
0 commit comments