diff options
author | INADA Naoki <inada-n@klab.com> | 2014-02-17 04:05:04 +0900 |
---|---|---|
committer | INADA Naoki <inada-n@klab.com> | 2014-02-17 04:05:04 +0900 |
commit | 7effb4aac64f1c44241e0a88ab19fa6c8405c3fa (patch) | |
tree | 48d4d53b797948c9964e1b2142900b01d99a0b6c | |
parent | 11a3b1561a07b28a37ac22637f636c4c5ac24c23 (diff) | |
download | msgpack-python-7effb4aac64f1c44241e0a88ab19fa6c8405c3fa.tar.gz |
fix
-rw-r--r-- | msgpack/fallback.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/msgpack/fallback.py b/msgpack/fallback.py index b673222..0c5b50f 100644 --- a/msgpack/fallback.py +++ b/msgpack/fallback.py @@ -194,7 +194,7 @@ class Unpacker(object): if isinstance(next_bytes, array.array): next_bytes = next_bytes.tostring() elif isinstance(next_bytes, bytearray): - next_bytes = (bytes if PY3 else str)(next_bytes) + next_bytes = bytes(next_bytes) assert self._fb_feeding if self._fb_buf_n + len(next_bytes) > self._max_buffer_size: raise BufferFull |