|
1 | 1 | import asyncio, asyncio.log, asyncio.base_events, \
|
2 | 2 | asyncio.sslproto, asyncio.coroutines, \
|
3 |
| - asyncio.futures |
| 3 | + asyncio.futures, asyncio.transports |
4 | 4 | import collections.abc
|
5 | 5 | import concurrent.futures
|
6 | 6 | import errno
|
@@ -37,12 +37,13 @@ cdef aio_iscoroutine = asyncio.iscoroutine
|
37 | 37 | cdef aio_iscoroutinefunction = asyncio.iscoroutinefunction
|
38 | 38 | cdef aio_BaseProtocol = asyncio.BaseProtocol
|
39 | 39 | cdef aio_Protocol = asyncio.Protocol
|
40 |
| -cdef aio_SSLProtocol = asyncio.sslproto.SSLProtocol |
41 | 40 | cdef aio_isfuture = getattr(asyncio, 'isfuture', None)
|
42 | 41 | cdef aio_get_running_loop = getattr(asyncio, '_get_running_loop', None)
|
43 | 42 | cdef aio_set_running_loop = getattr(asyncio, '_set_running_loop', None)
|
44 | 43 | cdef aio_debug_wrapper = getattr(asyncio.coroutines, 'debug_wrapper', None)
|
45 | 44 | cdef aio_AbstractChildWatcher = asyncio.AbstractChildWatcher
|
| 45 | +cdef aio_Transport = asyncio.Transport |
| 46 | +cdef aio_FlowControlMixin = asyncio.transports._FlowControlMixin |
46 | 47 |
|
47 | 48 | cdef col_deque = collections.deque
|
48 | 49 | cdef col_Iterable = collections.abc.Iterable
|
@@ -116,6 +117,13 @@ cdef sys_getframe = sys._getframe
|
116 | 117 | cdef sys_version_info = sys.version_info
|
117 | 118 |
|
118 | 119 | cdef ssl_SSLContext = ssl.SSLContext
|
| 120 | +cdef ssl_MemoryBIO = ssl.MemoryBIO |
| 121 | +cdef ssl_create_default_context = ssl.create_default_context |
| 122 | +cdef ssl_SSLError = ssl.SSLError |
| 123 | +cdef ssl_CertificateError = ssl.CertificateError |
| 124 | +cdef int ssl_SSL_ERROR_WANT_READ = ssl.SSL_ERROR_WANT_READ |
| 125 | +cdef int ssl_SSL_ERROR_WANT_WRITE = ssl.SSL_ERROR_WANT_WRITE |
| 126 | +cdef int ssl_SSL_ERROR_SYSCALL = ssl.SSL_ERROR_SYSCALL |
119 | 127 |
|
120 | 128 | cdef long MAIN_THREAD_ID = <long>threading.main_thread().ident
|
121 | 129 |
|
|
0 commit comments