summaryrefslogtreecommitdiffstats
path: root/Modules/_asynciomodule.c
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2019-03-22 11:07:32 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-03-22 11:07:32 (GMT)
commitc5c6cdada3d41148bdeeacfe7528327b481c5d18 (patch)
tree19cd43afc4a6cf2351fe85a8beca0f2e111fdfd4 /Modules/_asynciomodule.c
parentb0df45e55dc8304bac0e3cad0225472b84190964 (diff)
downloadcpython-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/_asynciomodule.c')
-rw-r--r--Modules/_asynciomodule.c4
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) {