mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-10-15 23:20:08 +02:00
python: Fix Unpacker.feed doesn't accept bytes on Python3.
This commit is contained in:
@@ -253,9 +253,7 @@ cdef class Unpacker(object):
|
|||||||
template_init(&self.ctx)
|
template_init(&self.ctx)
|
||||||
self.ctx.user.use_list = use_list
|
self.ctx.user.use_list = use_list
|
||||||
|
|
||||||
def feed(self, next_bytes):
|
def feed(self, bytes next_bytes):
|
||||||
if not isinstance(next_bytes, str):
|
|
||||||
raise ValueError, "Argument must be bytes object"
|
|
||||||
self.waiting_bytes.append(next_bytes)
|
self.waiting_bytes.append(next_bytes)
|
||||||
|
|
||||||
cdef append_buffer(self):
|
cdef append_buffer(self):
|
||||||
|
Reference in New Issue
Block a user