We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab78981 commit 8ae6320Copy full SHA for 8ae6320
msgpack/fallback.py
@@ -639,7 +639,7 @@ def _unpack(self, execute=EX_CONSTRUCT):
639
ret = {}
640
for _ in xrange(n):
641
key = self._unpack(EX_CONSTRUCT)
642
- if self._strict_map_key and type(key) not in (unicode, bytes):
+ if self._strict_map_key and type(key) not in (Unicode, bytes):
643
raise ValueError("%s is not allowed for map key" % str(type(key)))
644
ret[key] = self._unpack(EX_CONSTRUCT)
645
if self._object_hook is not None:
0 commit comments