Commit 99dde7d8 authored by Stefan Behnel's avatar Stefan Behnel

fix crash during shutdown when finaliser is already called

parent 72acc2cd
...@@ -189,8 +189,9 @@ __Pyx_async_gen_traverse(__pyx_PyAsyncGenObject *gen, visitproc visit, void *arg ...@@ -189,8 +189,9 @@ __Pyx_async_gen_traverse(__pyx_PyAsyncGenObject *gen, visitproc visit, void *arg
static PyObject * static PyObject *
__Pyx_async_gen_repr(__pyx_CoroutineObject *o) __Pyx_async_gen_repr(__pyx_CoroutineObject *o)
{ {
// avoid NULL pointer dereference for qualname during garbage collection
return PyUnicode_FromFormat("<async_generator object %S at %p>", return PyUnicode_FromFormat("<async_generator object %S at %p>",
o->gi_qualname, o); o->gi_qualname ? o->gi_qualname : Py_None, o);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment