From 3880f263d2994fb1eba25835dddccb0cf696fdf0 Mon Sep 17 00:00:00 2001 From: Matthias Bussonnier Date: Tue, 28 May 2019 00:10:59 -0700 Subject: bpo-36933: Remove sys.set_coroutine_wrapper (marked for removal in 3.8) (GH-13577) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It has been documented as deprecated and to be removed in 3.8; From a comment on another thread – which I can't find ; leave get_coro_wrapper() for now, but always return `None`. https://bugs.python.org/issue36933 --- Python/pystate.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'Python/pystate.c') diff --git a/Python/pystate.c b/Python/pystate.c index d1a8d24724..833e0fb30d 100644 --- a/Python/pystate.c +++ b/Python/pystate.c @@ -606,9 +606,6 @@ new_threadstate(PyInterpreterState *interp, int init) tstate->coroutine_origin_tracking_depth = 0; - tstate->coroutine_wrapper = NULL; - tstate->in_coroutine_wrapper = 0; - tstate->async_gen_firstiter = NULL; tstate->async_gen_finalizer = NULL; @@ -802,7 +799,6 @@ PyThreadState_Clear(PyThreadState *tstate) Py_CLEAR(tstate->c_profileobj); Py_CLEAR(tstate->c_traceobj); - Py_CLEAR(tstate->coroutine_wrapper); Py_CLEAR(tstate->async_gen_firstiter); Py_CLEAR(tstate->async_gen_finalizer); -- cgit v1.2.1