Kaydet (Commit) 53478f8c authored tarafından Yury Selivanov's avatar Yury Selivanov

Issue #28493: Fix typos in _asynciomodule.c

Thanks to Stéphane Wirtel!
üst b738a1f8
...@@ -789,11 +789,11 @@ FutureIter_iternext(futureiterobject *it) ...@@ -789,11 +789,11 @@ FutureIter_iternext(futureiterobject *it)
if (res != NULL) { if (res != NULL) {
/* The result of the Future is not an exception. /* The result of the Future is not an exception.
We cunstruct an exception instance manually with We construct an exception instance manually with
PyObject_CallFunctionObjArgs and pass it to PyErr_SetObject PyObject_CallFunctionObjArgs and pass it to PyErr_SetObject
(similarly to what genobject.c does). (similarly to what genobject.c does).
This is to handle a situation when "res" is a tuple, in which We do this to handle a situation when "res" is a tuple, in which
case PyErr_SetObject would set the value of StopIteration to case PyErr_SetObject would set the value of StopIteration to
the first element of the tuple. the first element of the tuple.
......
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