summaryrefslogtreecommitdiff
path: root/msgpack/fallback.py
diff options
context:
space:
mode:
authorINADA Naoki <inada-n@klab.com>2014-02-17 04:07:16 +0900
committerINADA Naoki <inada-n@klab.com>2014-02-17 04:07:16 +0900
commiteb3537ab5090c06dc64931bd3901c955330da901 (patch)
tree985ebc96505ea8f73bd1170e085e882aac2bc1a3 /msgpack/fallback.py
parentff263dfee81b3c20de8e75f903a9ef82ba9e7de2 (diff)
parent518f886b111808d7d9f29b34c50baddb01610338 (diff)
downloadmsgpack-python-eb3537ab5090c06dc64931bd3901c955330da901.tar.gz
Merge branch 'pr/82'
Diffstat (limited to 'msgpack/fallback.py')
-rw-r--r--msgpack/fallback.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/msgpack/fallback.py b/msgpack/fallback.py
index cf61023..55de72c 100644
--- a/msgpack/fallback.py
+++ b/msgpack/fallback.py
@@ -193,6 +193,8 @@ class Unpacker(object):
def feed(self, next_bytes):
if isinstance(next_bytes, array.array):
next_bytes = next_bytes.tostring()
+ elif isinstance(next_bytes, bytearray):
+ next_bytes = bytes(next_bytes)
assert self._fb_feeding
if self._fb_buf_n + len(next_bytes) > self._max_buffer_size:
raise BufferFull