diff --git a/msgpack/fallback.py b/msgpack/fallback.py index 4307bc8..8fcc1d7 100644 --- a/msgpack/fallback.py +++ b/msgpack/fallback.py @@ -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: