Skip to content

Commit 08400e0

Browse files
use type() is list for exact checking
1 parent 887f102 commit 08400e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

msgpack/fallback.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ 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-
elif isinstance(key, list):
532+
elif type(key) is list:
533533
key = tuple(key)
534534
ret[key] = self._unpack(EX_CONSTRUCT)
535535
if self._object_hook is not None:

0 commit comments

Comments
 (0)