diff options
author | Matthias Bussonnier <bussonniermatthias@gmail.com> | 2019-05-28 07:10:59 (GMT) |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-05-28 07:10:59 (GMT) |
commit | 3880f263d2994fb1eba25835dddccb0cf696fdf0 (patch) | |
tree | 0c40e3b7cab9b3aa59600cec290548709d7c7dc4 /Python/clinic/sysmodule.c.h | |
parent | 436c2b0d67da68465e709a96daac7340af3a5238 (diff) | |
download | cpython-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/clinic/sysmodule.c.h')
-rw-r--r-- | Python/clinic/sysmodule.c.h | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/Python/clinic/sysmodule.c.h b/Python/clinic/sysmodule.c.h index 5df8af1..6f248ff 100644 --- a/Python/clinic/sysmodule.c.h +++ b/Python/clinic/sysmodule.c.h @@ -510,33 +510,6 @@ exit: return return_value; } -PyDoc_STRVAR(sys_set_coroutine_wrapper__doc__, -"set_coroutine_wrapper($module, wrapper, /)\n" -"--\n" -"\n" -"Set a wrapper for coroutine objects."); - -#define SYS_SET_COROUTINE_WRAPPER_METHODDEF \ - {"set_coroutine_wrapper", (PyCFunction)sys_set_coroutine_wrapper, METH_O, sys_set_coroutine_wrapper__doc__}, - -PyDoc_STRVAR(sys_get_coroutine_wrapper__doc__, -"get_coroutine_wrapper($module, /)\n" -"--\n" -"\n" -"Return the wrapper for coroutines set by sys.set_coroutine_wrapper."); - -#define SYS_GET_COROUTINE_WRAPPER_METHODDEF \ - {"get_coroutine_wrapper", (PyCFunction)sys_get_coroutine_wrapper, METH_NOARGS, sys_get_coroutine_wrapper__doc__}, - -static PyObject * -sys_get_coroutine_wrapper_impl(PyObject *module); - -static PyObject * -sys_get_coroutine_wrapper(PyObject *module, PyObject *Py_UNUSED(ignored)) -{ - return sys_get_coroutine_wrapper_impl(module); -} - PyDoc_STRVAR(sys_get_asyncgen_hooks__doc__, "get_asyncgen_hooks($module, /)\n" "--\n" @@ -1109,4 +1082,4 @@ sys_getandroidapilevel(PyObject *module, PyObject *Py_UNUSED(ignored)) #ifndef SYS_GETANDROIDAPILEVEL_METHODDEF #define SYS_GETANDROIDAPILEVEL_METHODDEF #endif /* !defined(SYS_GETANDROIDAPILEVEL_METHODDEF) */ -/*[clinic end generated code: output=03da2eb03135d9f2 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=43c4fde7b5783d8d input=a9049054013a1b77]*/ |