fix typo in async generator code field name `ag_code` (#102448)

This commit is contained in:
Kumar Aditya 2023-03-08 09:09:50 +05:30 committed by GitHub
parent 1e703a4733
commit e499680100
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1549,7 +1549,7 @@ ag_getframe(PyAsyncGenObject *ag, void *Py_UNUSED(ignored))
static PyObject *
ag_getcode(PyGenObject *gen, void *Py_UNUSED(ignored))
{
return _gen_getcode(gen, "ag__code");
return _gen_getcode(gen, "ag_code");
}
static PyGetSetDef async_gen_getsetlist[] = {