8000 Another approach to typecasting fix for jython. For some reason += th… · devendor/msgpack-python@9d4909a · GitHub
[go: up one dir, main page]

Skip to content

Commit 9d4909a

Browse files
committed
Another approach to typecasting fix for jython. For some reason += throws TypeError, but .extend triggers implicit typecasting.
1 parent 88be776 commit 9d4909a

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
@@ -297,7 +297,7 @@ def feed(self, next_bytes):
297297
self._buff_i -= self._buf_checkpoint
298298
self._buf_checkpoint = 0
299299

300-
self._buffer += bytearray(view)
300+
self._buffer.extend(view)
301301

302302
def _consume(self):
303303
""" Gets rid of the used parts of the buffer. """

0 commit comments

Comments
 (0)
0