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 e92dce0 commit 1720f8aCopy full SHA for 1720f8a
buffer.pyx
@@ -261,8 +261,8 @@ cdef class ReadBuffer:
261
ssize_t dlen
262
bytes data_bytes
263
264
- if not cpythonx.PyBytes_CheckExact(data):
265
- if cpython.PyByteArray_CheckExact(data):
+ if not cpython.PyBytes_CheckExact(data):
+ if cpythonx.PyByteArray_CheckExact(data):
266
# ProactorEventLoop in Python 3.10+ seems to be sending
267
# bytearray objects instead of bytes. Handle this here
268
# to avoid duplicating this check in every data_received().
0 commit comments