Skip to content

Commit 1720f8a

Browse files
committed
Fix mixed up modules
1 parent e92dce0 commit 1720f8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

buffer.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,8 @@ cdef class ReadBuffer:
261261
ssize_t dlen
262262
bytes data_bytes
263263

264-
if not cpythonx.PyBytes_CheckExact(data):
265-
if cpython.PyByteArray_CheckExact(data):
264+
if not cpython.PyBytes_CheckExact(data):
265+
if cpythonx.PyByteArray_CheckExact(data):
266266
# ProactorEventLoop in Python 3.10+ seems to be sending
267267
# bytearray objects instead of bytes. Handle this here
268268
# to avoid duplicating this check in every data_received().

0 commit comments

Comments
 (0)