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.
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 @@
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",