From c4017f266718da10d5f1ba357fa865c630380811 Mon Sep 17 00:00:00 2001 From: Youhei Sakurai Date: Tue, 22 May 2018 18:19:36 +0900 Subject: [PATCH] Replace asyncio.coroutines.debug_wrapper with CoroWrapper --- uvloop/includes/stdlib.pxi | 2 +- uvloop/loop.pyx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/uvloop/includes/stdlib.pxi b/uvloop/includes/stdlib.pxi index c09cec57..40b025f0 100644 --- a/uvloop/includes/stdlib.pxi +++ b/uvloop/includes/stdlib.pxi @@ -38,7 +38,7 @@ cdef aio_iscoroutinefunction = asyncio.iscoroutinefunction cdef aio_BaseProtocol = asyncio.BaseProtocol cdef aio_Protocol = asyncio.Protocol cdef aio_SSLProtocol = asyncio.sslproto.SSLProtocol -cdef aio_debug_wrapper = asyncio.coroutines.debug_wrapper +cdef aio_CoroWrapper = asyncio.coroutines.CoroWrapper cdef aio_isfuture = getattr(asyncio, 'isfuture', None) cdef aio_get_running_loop = getattr(asyncio, '_get_running_loop', None) cdef aio_set_running_loop = getattr(asyncio, '_set_running_loop', None) diff --git a/uvloop/loop.pyx b/uvloop/loop.pyx index 1e505675..7dae12d7 100644 --- a/uvloop/loop.pyx +++ b/uvloop/loop.pyx @@ -975,7 +975,7 @@ cdef class Loop: if self._coroutine_wrapper_set == enabled: return - wrapper = aio_debug_wrapper + wrapper = aio_CoroWrapper current_wrapper = sys_get_coroutine_wrapper() if enabled: