diff options
| author | Yury Selivanov <yury@magic.io> | 2016-10-20 20:33:39 (GMT) |
|---|---|---|
| committer | Yury Selivanov <yury@magic.io> | 2016-10-20 20:33:39 (GMT) |
| commit | dc5061fe10221fa7d83c4c7cd00f4f5fa2123dd0 (patch) | |
| tree | 3b3044ce7cf1067994136c1423181fd6bbaf1591 | |
| parent | b7c1dfe52a7508017c824291e2acd811e98f1948 (diff) | |
| parent | 53478f8c6d9370fc37b377d91d79002823cf8ea0 (diff) | |
| download | cpython-dc5061fe10221fa7d83c4c7cd00f4f5fa2123dd0.zip cpython-dc5061fe10221fa7d83c4c7cd00f4f5fa2123dd0.tar.gz cpython-dc5061fe10221fa7d83c4c7cd00f4f5fa2123dd0.tar.bz2 | |
Merge 3.6 (issue #28493)
| -rw-r--r-- | Modules/_asynciomodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_asynciomodule.c b/Modules/_asynciomodule.c index d9fe63d..37298cc 100644 --- a/Modules/_asynciomodule.c +++ b/Modules/_asynciomodule.c @@ -789,11 +789,11 @@ FutureIter_iternext(futureiterobject *it) if (res != NULL) { /* 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 (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 the first element of the tuple. |
