mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-10-19 20:03:16 +00:00
Fix fallback
This commit is contained in:
parent
ab789813b8
commit
8ae6320072
1 changed files with 1 additions and 1 deletions
|
@ -639,7 +639,7 @@ class Unpacker(object):
|
|||
ret = {}
|
||||
for _ in xrange(n):
|
||||
key = self._unpack(EX_CONSTRUCT)
|
||||
if self._strict_map_key and type(key) not in (unicode, bytes):
|
||||
if self._strict_map_key and type(key) not in (Unicode, bytes):
|
||||
raise ValueError("%s is not allowed for map key" % str(type(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