[Python-checkins] [3.7] Fix a compiler warning added in bpo-34872. (GH-9722). (GH-9726)

Serhiy Storchaka webhook-mailer at python.org
Fri Oct 5 14:58:22 EDT 2018


https://github.com/python/cpython/commit/d9212200fe8ddb55d73b8231869cfbb32635ba92
commit: d9212200fe8ddb55d73b8231869cfbb32635ba92
branch: 3.7
author: Serhiy Storchaka <storchaka at gmail.com>
committer: GitHub <noreply at github.com>
date: 2018年10月05日T21:58:15+03:00
summary:
[3.7] Fix a compiler warning added in bpo-34872. (GH-9722). (GH-9726)
(cherry picked from commit addf8afb43af58b9bf56a0ecfd0f316dd60ac0c3)
files:
M Modules/_asynciomodule.c
diff --git a/Modules/_asynciomodule.c b/Modules/_asynciomodule.c
index 9f7500a40ad1..809879ac77d3 100644
--- a/Modules/_asynciomodule.c
+++ b/Modules/_asynciomodule.c
@@ -2663,7 +2663,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

AltStyle によって変換されたページ (->オリジナル) /