diff options
Diffstat (limited to 'Objects/genobject.c')
-rw-r--r-- | Objects/genobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/genobject.c b/Objects/genobject.c index db00d19..27fe15c 100644 --- a/Objects/genobject.c +++ b/Objects/genobject.c @@ -840,7 +840,7 @@ gen_new_with_qualname(PyTypeObject *type, PyFrameObject *f, if (qualname != NULL) gen->gi_qualname = qualname; else - gen->gi_qualname = gen->gi_name; + gen->gi_qualname = gen->gi_code->co_qualname; Py_INCREF(gen->gi_qualname); _PyObject_GC_TRACK(gen); return (PyObject *)gen; |