summaryrefslogtreecommitdiffstats
path: root/Python/ceval.c
diff options
context:
space:
mode:
authorYury Selivanov <yury@magic.io>2016-11-08 20:13:07 (GMT)
committerYury Selivanov <yury@magic.io>2016-11-08 20:13:07 (GMT)
commit2edd8a1e2cd22f8ba46e108ff213bec8c5f86459 (patch)
tree67a74827d0310416aad0ae57fbbdbbe5e3496b9f /Python/ceval.c
parent1c9bd1d8ec9a022f4f222eccbddac3b4174c2ab2 (diff)
downloadcpython-2edd8a1e2cd22f8ba46e108ff213bec8c5f86459.zip
cpython-2edd8a1e2cd22f8ba46e108ff213bec8c5f86459.tar.gz
cpython-2edd8a1e2cd22f8ba46e108ff213bec8c5f86459.tar.bz2
Issue #27243: Change PendingDeprecationWarning -> DeprecationWarning.
As it was agreed in the issue, __aiter__ returning an awaitable should result in PendingDeprecationWarning in 3.5 and in DeprecationWarning in 3.6.
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 82cc9a2..0add7ec 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -1911,7 +1911,7 @@ _PyEval_EvalFrameDefault(PyFrameObject *f, int throwflag)
Py_DECREF(iter);
if (PyErr_WarnFormat(
- PyExc_PendingDeprecationWarning, 1,
+ PyExc_DeprecationWarning, 1,
"'%.100s' implements legacy __aiter__ protocol; "
"__aiter__ should return an asynchronous "
"iterator, not awaitable",