summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2018-11-30 11:42:51 +0900
committerInada Naoki <songofacandy@gmail.com>2018-11-30 11:42:51 +0900
commit8ae6320072e746fad29bc14a095569811e009695 (patch)
tree69294aedf5c7b313593fc3f9f566659957312f25
parentab789813b8e5786f404e9132ff1c6f2647dc4afa (diff)
downloadmsgpack-python-8ae6320072e746fad29bc14a095569811e009695.tar.gz
Fix fallback
-rw-r--r--msgpack/fallback.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/msgpack/fallback.py b/msgpack/fallback.py
index be60cca..ae2fcfc 100644
--- a/msgpack/fallback.py
+++ b/msgpack/fallback.py
@@ -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: