summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-09-07 11:43:33 (GMT)
committerGitHub <noreply@github.com>2021-09-07 11:43:33 (GMT)
commit53257cf19fc06fff446815b3278d4b80ec3e7ba3 (patch)
treed8277cc47a08212a2fa891552e7657d26a7bc79a /Python
parentfc840736e54da0557616882012f362b809490165 (diff)
downloadcpython-53257cf19fc06fff446815b3278d4b80ec3e7ba3.zip
cpython-53257cf19fc06fff446815b3278d4b80ec3e7ba3.tar.gz
cpython-53257cf19fc06fff446815b3278d4b80ec3e7ba3.tar.bz2
bpo-45123: PyAiter_Check and PyObject_GetAiter fix & rename. (GH-28194) (GH-28199)
Fix PyAiter_Check to only check for the `__anext__` presense (not for `__aiter__`). Rename `PyAiter_Check()` to `PyAIter_Check()`, `PyObject_GetAiter()` -> `PyObject_GetAIter()`.
Diffstat (limited to 'Python')
-rw-r--r--Python/bltinmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index 130c5f0..b0162e5 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -1610,7 +1610,7 @@ static PyObject *
builtin_aiter(PyObject *module, PyObject *async_iterable)
/*[clinic end generated code: output=1bae108d86f7960e input=473993d0cacc7d23]*/
{
- return PyObject_GetAiter(async_iterable);
+ return PyObject_GetAIter(async_iterable);
}
PyObject *PyAnextAwaitable_New(PyObject *, PyObject *);