summaryrefslogtreecommitdiff
path: root/msgpack/fallback.py
diff options
context:
space:
mode:
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 bf5b1c2..3ef1341 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 = str(next_bytes)
assert self._fb_feeding
if self._fb_buf_n + len(next_bytes) > self._max_buffer_size:
raise BufferFull