summaryrefslogtreecommitdiffstats
path: root/Python/pystate.c
diff options
context:
space:
mode:
authorMatthias Bussonnier <bussonniermatthias@gmail.com>2019-05-28 07:10:59 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-05-28 07:10:59 (GMT)
commit3880f263d2994fb1eba25835dddccb0cf696fdf0 (patch)
tree0c40e3b7cab9b3aa59600cec290548709d7c7dc4 /Python/pystate.c
parent436c2b0d67da68465e709a96daac7340af3a5238 (diff)
downloadcpython-3880f263d2994fb1eba25835dddccb0cf696fdf0.zip
cpython-3880f263d2994fb1eba25835dddccb0cf696fdf0.tar.gz
cpython-3880f263d2994fb1eba25835dddccb0cf696fdf0.tar.bz2
bpo-36933: Remove sys.set_coroutine_wrapper (marked for removal in 3.8) (GH-13577)
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
Diffstat (limited to 'Python/pystate.c')
-rw-r--r--Python/pystate.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/Python/pystate.c b/Python/pystate.c
index d1a8d24..833e0fb 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);