Fix fallback

This commit is contained in:
Inada Naoki 2018-11-30 11:42:51 +09:00
parent ab789813b8
commit 8ae6320072

View file

@ -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: