8000 fix · popravich/msgpack-python@7effb4a · GitHub
[go: up one dir, main page]

Skip to content

Commit 7effb4a

Browse files
committed
fix
1 parent 11a3b15 commit 7effb4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

msgpack/fallback.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def feed(self, next_bytes):
194194
if isinstance(next_bytes, array.array):
195195
next_bytes = next_bytes.tostring()
196196
elif isinstance(next_bytes, bytearray):
197-
next_bytes = (bytes if PY3 else str)(next_bytes)
197+
next_bytes = bytes(next_bytes)
198198
assert self._fb_feeding
199199
if self._fb_buf_n + len(next_bytes) > self._max_buffer_size:
200200
raise BufferFull

0 commit comments

Comments
 (0)
0