Commit ddec13cb authored by Stefan Behnel's avatar Stefan Behnel

improve error message to hint at potential dependency on Py3.6+ finalisation as most likely cause

parent 8e5ee09f
...@@ -867,7 +867,11 @@ static PyObject *__Pyx_Coroutine_Close(PyObject *self) { ...@@ -867,7 +867,11 @@ static PyObject *__Pyx_Coroutine_Close(PyObject *self) {
#endif #endif
#ifdef __Pyx_AsyncGen_USED #ifdef __Pyx_AsyncGen_USED
} else if (__Pyx_AsyncGen_CheckExact(self)) { } else if (__Pyx_AsyncGen_CheckExact(self)) {
#if PY_VERSION_HEX < 0x03060000
msg = "async generator ignored GeneratorExit - might require Python 3.6+ finalisation (PEP 525)";
#else
msg = "async generator ignored GeneratorExit"; msg = "async generator ignored GeneratorExit";
#endif
#endif #endif
} else { } else {
msg = "generator ignored GeneratorExit"; msg = "generator ignored GeneratorExit";
......
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