summaryrefslogtreecommitdiff
path: root/python
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
commit2146f5f623ce4ee2afda660c77bce7852d4a1530 (patch)
treeff5b856aba0db48efa10089dd9f73df2a4857eeb /python
parent623df2357025a860578db54683aa10ddea7d261d (diff)
downloadmsgpack-python-2146f5f623ce4ee2afda660c77bce7852d4a1530.tar.gz
python: Fix Unpacker.feed doesn't accept bytes on Python3.
Diffstat (limited to 'python')
-rw-r--r--python/msgpack/_msgpack.pyx4
1 files changed, 1 insertions, 3 deletions
diff --git a/python/msgpack/_msgpack.pyx b/python/msgpack/_msgpack.pyx
index 6a0b1a5..85d717e 100644
--- a/python/msgpack/_msgpack.pyx
+++ b/python/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):