Skip to content

Commit 1345960

Browse files
author
taras
committed
Fix bytearray allocation
1 parent 649f8de commit 1345960

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

uvloop/sslproto.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ cdef class SSLProtocol:
610610
If close_notify is received for the first time, call eof_received.
611611
"""
612612
cdef:
613-
bytearray buffer = PyBytes_FromStringAndSize(
613+
bytearray buffer = PyByteArray_FromStringAndSize(
614614
NULL, SSL_READ_DEFAULT_SIZE)
615615
Py_ssize_t bytes_read = -1
616616
try:

0 commit comments

Comments
 (0)