diff options
author | Inada Naoki <songofacandy@gmail.com> | 2019-03-22 11:07:32 (GMT) |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-03-22 11:07:32 (GMT) |
commit | c5c6cdada3d41148bdeeacfe7528327b481c5d18 (patch) | |
tree | 19cd43afc4a6cf2351fe85a8beca0f2e111fdfd4 /Modules | |
parent | b0df45e55dc8304bac0e3cad0225472b84190964 (diff) | |
download | cpython-c5c6cdada3d41148bdeeacfe7528327b481c5d18.zip cpython-c5c6cdada3d41148bdeeacfe7528327b481c5d18.tar.gz cpython-c5c6cdada3d41148bdeeacfe7528327b481c5d18.tar.bz2 |
asyncio: PendingDeprecationWarning -> DeprecationWarning (GH-12494)
`Task.current_task()` and `Task.all_tasks()` will be removed in 3.9.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_asynciomodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_asynciomodule.c b/Modules/_asynciomodule.c index 7637cb7..f9037c2 100644 --- a/Modules/_asynciomodule.c +++ b/Modules/_asynciomodule.c @@ -2088,7 +2088,7 @@ _asyncio_Task_current_task_impl(PyTypeObject *type, PyObject *loop) PyObject *ret; PyObject *current_task_func; - if (PyErr_WarnEx(PyExc_PendingDeprecationWarning, + if (PyErr_WarnEx(PyExc_DeprecationWarning, "Task.current_task() is deprecated, " \ "use asyncio.current_task() instead", 1) < 0) { @@ -2136,7 +2136,7 @@ _asyncio_Task_all_tasks_impl(PyTypeObject *type, PyObject *loop) PyObject *res; PyObject *all_tasks_func; - if (PyErr_WarnEx(PyExc_PendingDeprecationWarning, + if (PyErr_WarnEx(PyExc_DeprecationWarning, "Task.all_tasks() is deprecated, " \ "use asyncio.all_tasks() instead", 1) < 0) { |