8000 Fix fallback · loude/msgpack-python@8ae6320 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8ae6320

Browse files
committed
Fix fallback
1 parent ab78981 commit 8ae6320

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

msgpack/fallback.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ def _unpack(self, execute=EX_CONSTRUCT):
639639
ret = {}
640640
for _ in xrange(n):
641641
key = self._unpack(EX_CONSTRUCT)
642-
if self._strict_map_key and type(key) not in (unicode, bytes):
642+
if self._strict_map_key and type(key) not in (Unicode, bytes):
643643
raise ValueError("%s is not allowed for map key" % str(type(key)))
644644
ret[key] = self._unpack(EX_CONSTRUCT)
645645
if self._object_hook is not None:

0 commit comments

Comments
 (0)
0