mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
bpo-39008: Require Py_ssize_t for PySys_Audit formats rather than raise a deprecation warning (GH-17540)
This commit is contained in:
parent
ac229116a3
commit
b8cbe74c34
3 changed files with 12 additions and 1 deletions
|
@ -181,7 +181,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