summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorKumar Aditya <59607654+kumaraditya303@users.noreply.github.com>2023-03-08 03:39:50 (GMT)
committerGitHub <noreply@github.com>2023-03-08 03:39:50 (GMT)
commite499680100a9d4fa4b673cbcfebc32212b4f848a (patch)
treed01ad55e6eb0cddff1f6f61b9702c0d267ffbdd7 /Objects
parent1e703a473343ed198c9a06a876b25d7d69d4bbd0 (diff)
downloadcpython-e499680100a9d4fa4b673cbcfebc32212b4f848a.zip
cpython-e499680100a9d4fa4b673cbcfebc32212b4f848a.tar.gz
cpython-e499680100a9d4fa4b673cbcfebc32212b4f848a.tar.bz2
fix typo in async generator code field name `ag_code` (#102448)
Diffstat (limited to 'Objects')
-rw-r--r--Objects/genobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/genobject.c b/Objects/genobject.c
index 4ab6581..be08a59 100644
--- a/Objects/genobject.c
+++ b/Objects/genobject.c
@@ -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[] = {