We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11a3b15 commit 7effb4aCopy full SHA for 7effb4a
msgpack/fallback.py
@@ -194,7 +194,7 @@ def feed(self, next_bytes):
194
if isinstance(next_bytes, array.array):
195
next_bytes = next_bytes.tostring()
196
elif isinstance(next_bytes, bytearray):
197
- next_bytes = (bytes if PY3 else str)(next_bytes)
+ next_bytes = bytes(next_bytes)
198
assert self._fb_feeding
199
if self._fb_buf_n + len(next_bytes) > self._max_buffer_size:
200
raise BufferFull
0 commit comments