Skip to content

Commit 64ff06e

Browse files
author
taras
committed
Cleanup for PR
1 parent 3e1a8a8 commit 64ff06e

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

uvloop/handles/stream.pyx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -931,7 +931,6 @@ cdef void __uv_stream_buffered_alloc(
931931
try:
932932
(<SSLProtocol>sc._protocol).get_buffer_impl(
933933
suggested_size, &uvbuf.base, &uvbuf.len)
934-
935934
return
936935
except BaseException as exc:
937936
# Can't call 'sc._fatal_error' or 'sc._close', libuv will SF.

uvloop/loop.pyx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,10 @@ from cpython cimport Py_INCREF, Py_DECREF, Py_XDECREF, Py_XINCREF
3535
from cpython cimport (
3636
PyObject_GetBuffer, PyBuffer_Release, PyBUF_SIMPLE,
3737
Py_buffer, PyBytes_AsString, PyBytes_CheckExact,
38-
PyBytes_AsStringAndSize,
39-
Py_SIZE, PyBytes_AS_STRING, PyBUF_WRITABLE
38+
PyBytes_AsStringAndSize, PyBytes_FromStringAndSize,
39+
Py_SIZE, PyBytes_AS_STRING, PyBUF_WRITABLE,
40+
PyByteArray_AS_STRING, PyByteArray_GET_SIZE, PyByteArray_Resize,
41+
PyByteArray_FromStringAndSize
4042
)
4143
from cpython.pycapsule cimport PyCapsule_New, PyCapsule_GetPointer
4244

uvloop/sslproto.pyx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
from cpython.bytearray cimport PyByteArray_FromStringAndSize, PyByteArray_AS_STRING, PyByteArray_GET_SIZE, PyByteArray_Resize
2-
from cpython.bytes cimport PyBytes_FromStringAndSize
3-
4-
51
cdef _create_transport_context(server_side, server_hostname):
62
if server_side:
73
raise ValueError('Server side SSL needs a valid SSLContext')
@@ -208,7 +204,6 @@ cdef class SSLProtocol:
208204
call_connection_made=True,
209205
ssl_handshake_timeout=None,
210206
ssl_shutdown_timeout=None):
211-
212207
if ssl_handshake_timeout is None:
213208
ssl_handshake_timeout = SSL_HANDSHAKE_TIMEOUT
214209
elif ssl_handshake_timeout <= 0:

0 commit comments

Comments
 (0)