summaryrefslogtreecommitdiff
path: root/msgpack/_msgpack.pyx
diff options
context:
space:
mode:
authorINADA Naoki <songofacandy@gmail.com>2010-09-02 02:02:47 +0900
committerINADA Naoki <songofacandy@gmail.com>2010-09-02 02:02:47 +0900
commit1e8eeb8ebed50e8d39c69be653df06a10730631e (patch)
tree406eaa60ab747b75e3c198e9645a75504e345e4b /msgpack/_msgpack.pyx
parenta301c14faa69fe7fa1c18d635f6c6fe5fa5d8d19 (diff)
downloadmsgpack-python-1e8eeb8ebed50e8d39c69be653df06a10730631e.tar.gz
python: Fix Unpacker.feed doesn't accept bytes on Python3.
Diffstat (limited to 'msgpack/_msgpack.pyx')
-rw-r--r--msgpack/_msgpack.pyx4
1 files changed, 1 insertions, 3 deletions
diff --git a/msgpack/_msgpack.pyx b/msgpack/_msgpack.pyx
index 6a0b1a5..85d717e 100644
--- a/msgpack/_msgpack.pyx
+++ b/msgpack/_msgpack.pyx
@@ -253,9 +253,7 @@ cdef class Unpacker(object):
template_init(&self.ctx)
self.ctx.user.use_list = use_list
- def feed(self, next_bytes):
- if not isinstance(next_bytes, str):
- raise ValueError, "Argument must be bytes object"
+ def feed(self, bytes next_bytes):
self.waiting_bytes.append(next_bytes)
cdef append_buffer(self):