Commit 32192948 authored by Stefan Behnel's avatar Stefan Behnel

prevent passing NULL into async-gen on normal iteration

parent 58694756
......@@ -450,7 +450,7 @@ __Pyx_async_gen_asend_send(__pyx_PyAsyncGenASend *o, PyObject *arg)
if (o->aw_state == 0) {
if (arg == NULL || arg == Py_None) {
arg = o->aw_sendval;
arg = o->aw_sendval ? o->aw_sendval : Py_None;
}
o->aw_state = 1;
}
......
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