Skip to content

Commit bdb9d8a

Browse files
sunmy2019serhiy-storchaka
authored andcommitted
[3.14] gh-146615: Fix format specifiers in extension modules (GH-146617)
(cherry picked from commit 1c396e1) Co-authored-by: sunmy2019 <59365878+sunmy2019@users.noreply.github.com>
1 parent 99f333d commit bdb9d8a

File tree

5 files changed

+1040
-14
lines changed

5 files changed

+1040
-14
lines changed

Modules/_asynciomodule.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2255,7 +2255,7 @@ enter_task(PyObject *loop, PyObject *task)
22552255
PyExc_RuntimeError,
22562256
"Cannot enter into task %R while another " \
22572257
"task %R is being executed.",
2258-
task, ts->asyncio_running_task, NULL);
2258+
task, ts->asyncio_running_task);
22592259
return -1;
22602260
}
22612261

@@ -2278,7 +2278,7 @@ leave_task(PyObject *loop, PyObject *task)
22782278
PyExc_RuntimeError,
22792279
"Invalid attempt to leave task %R while " \
22802280
"task %R is entered.",
2281-
task, ts->asyncio_running_task ? ts->asyncio_running_task : Py_None, NULL);
2281+
task, ts->asyncio_running_task ? ts->asyncio_running_task : Py_None);
22822282
return -1;
22832283
}
22842284
Py_CLEAR(ts->asyncio_running_task);
@@ -2343,7 +2343,7 @@ _asyncio_Task___init___impl(TaskObj *self, PyObject *coro, PyObject *loop,
23432343
self->task_log_destroy_pending = 0;
23442344
PyErr_Format(PyExc_TypeError,
23452345
"a coroutine was expected, got %R",
2346-
coro, NULL);
2346+
coro);
23472347
return -1;
23482348
}
23492349

0 commit comments

Comments
 (0)