mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-10-26 23:24:10 +00:00
fix
This commit is contained in:
parent
11a3b1561a
commit
7effb4aac6
1 changed files with 1 additions and 1 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 = (bytes if PY3 else str)(next_bytes)
|
||||
next_bytes = bytes(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