[Python-checkins] Fix a compiler warning added in bpo-34872. (GH-9722)
Serhiy Storchaka
webhook-mailer at python.org
Fri Oct 5 14:20:08 EDT 2018
https://github.com/python/cpython/commit/addf8afb43af58b9bf56a0ecfd0f316dd60ac0c3
commit: addf8afb43af58b9bf56a0ecfd0f316dd60ac0c3
branch: master
author: Serhiy Storchaka <storchaka at gmail.com>
committer: GitHub <noreply at github.com>
date: 2018-10-05T21:20:02+03:00
summary:
Fix a compiler warning added in bpo-34872. (GH-9722)
files:
M Modules/_asynciomodule.c
diff --git a/Modules/_asynciomodule.c b/Modules/_asynciomodule.c
index eb503fb38c12..88986718905e 100644
--- a/Modules/_asynciomodule.c
+++ b/Modules/_asynciomodule.c
@@ -2714,7 +2714,7 @@ task_step_impl(TaskObj *task, PyObject *exc)
if (task->task_must_cancel) {
PyObject *r;
int is_true;
- r = _PyObject_CallMethodId(fut, &PyId_cancel, NULL);
+ r = _PyObject_CallMethodId(result, &PyId_cancel, NULL);
if (r == NULL) {
return NULL;
}
More information about the Python-checkins
mailing list