mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-10-20 12:23:16 +00:00
fixed support of python3
This commit is contained in:
parent
48ca2d700d
commit
11a3b1561a
2 changed files with 5 additions and 2 deletions
|
@ -194,7 +194,7 @@ class Unpacker(object):
|
|||
if isinstance(next_bytes, array.array):
|
||||
next_bytes = next_bytes.tostring()
|
||||
elif isinstance(next_bytes, bytearray):
|
||||
next_bytes = str(next_bytes)
|
||||
next_bytes = (bytes if PY3 else str)(next_bytes)
|
||||
assert self._fb_feeding
|
||||
if self._fb_buf_n + len(next_bytes) > self._max_buffer_size:
|
||||
raise BufferFull
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue