mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
bpo-39008: Require Py_ssize_t for PySys_Audit formats rather than raise a deprecation warning (GH-17540)
(cherry picked from commit b8cbe74c34)
Co-authored-by: Steve Dower <steve.dower@python.org>
This commit is contained in:
parent
3c5feaffde
commit
c93d68bbb9
3 changed files with 12 additions and 1 deletions
|
|
@ -159,7 +159,7 @@ PySys_Audit(const char *event, const char *argFormat, ...)
|
|||
if (argFormat && argFormat[0]) {
|
||||
va_list args;
|
||||
va_start(args, argFormat);
|
||||
eventArgs = Py_VaBuildValue(argFormat, args);
|
||||
eventArgs = _Py_VaBuildValue_SizeT(argFormat, args);
|
||||
va_end(args);
|
||||
if (eventArgs && !PyTuple_Check(eventArgs)) {
|
||||
PyObject *argTuple = PyTuple_Pack(1, eventArgs);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue