mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
space
This commit is contained in:
parent
2afe6aeae8
commit
f50af113ab
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ gen_send_ex(PyGenObject *gen, PyObject *arg, int exc)
|
|||
"generator already executing");
|
||||
return NULL;
|
||||
}
|
||||
if (f==NULL || f->f_stacktop == NULL) {
|
||||
if (f == NULL || f->f_stacktop == NULL) {
|
||||
/* Only set exception if called from send() */
|
||||
if (arg && !exc)
|
||||
PyErr_SetNone(PyExc_StopIteration);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue