Skip to content

Commit dd0670f

Browse files
miss-islingtonserhiy-storchaka
authored andcommitted
Fix a compiler warning added in bpo-34872. (GH-9722). (GH-9726) (GH-9728)
(cherry picked from commit addf8af) (cherry picked from commit d921220)
1 parent d02490a commit dd0670f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/_asynciomodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2122,7 +2122,7 @@ task_step_impl(TaskObj *task, PyObject *exc)
21222122
if (task->task_must_cancel) {
21232123
PyObject *r;
21242124
int is_true;
2125-
r = _PyObject_CallMethodId(fut, &PyId_cancel, NULL);
2125+
r = _PyObject_CallMethodId(result, &PyId_cancel, NULL);
21262126
if (r == NULL) {
21272127
return NULL;
21282128
}

0 commit comments

Comments
 (0)