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