Fix a compiler warning added in bpo-34872. (GH-9722) · python/cpython@addf8af (original) (raw)
Navigation Menu
- GitHub Copilot Write better code with AI
- GitHub Models New Manage and compare prompts
- GitHub Advanced Security Find and fix vulnerabilities
- Actions Automate any workflow
- Codespaces Instant dev environments
- Issues Plan and track work
- Code Review Manage code changes
- Discussions Collaborate outside of code
- Code Search Find more, search less
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Commit addf8af
File tree
1 file changed
lines changed
1 file changed
lines changed
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -2714,7 +2714,7 @@ task_step_impl(TaskObj *task, PyObject *exc) | ||
2714 | 2714 | if (task->task_must_cancel) { |
2715 | 2715 | PyObject *r; |
2716 | 2716 | int is_true; |
2717 | -r = _PyObject_CallMethodId(fut, &PyId_cancel, NULL); | |
2717 | +r = _PyObject_CallMethodId(result, &PyId_cancel, NULL); | |
2718 | 2718 | if (r == NULL) { |
2719 | 2719 | return NULL; |
2720 | 2720 | } |