summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-12-09 19:22:30 (GMT)
committerGitHub <noreply@github.com>2019-12-09 19:22:30 (GMT)
commitc93d68bbb986ee0879f5627223e0bd2bb91f63dd (patch)
tree1d9ab21f6c4deb3dcd3bfad62da952f766652710 /Python
parent3c5feaffde1944052830c896ae39c54e76a2e063 (diff)
downloadcpython-c93d68bbb986ee0879f5627223e0bd2bb91f63dd.zip
cpython-c93d68bbb986ee0879f5627223e0bd2bb91f63dd.tar.gz
cpython-c93d68bbb986ee0879f5627223e0bd2bb91f63dd.tar.bz2
bpo-39008: Require Py_ssize_t for PySys_Audit formats rather than raise a deprecation warning (GH-17540)
(cherry picked from commit b8cbe74c3498c617f0e73fd0cdc5c07f2c532092) Co-authored-by: Steve Dower <steve.dower@python.org>
Diffstat (limited to 'Python')
-rw-r--r--Python/sysmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 1255665..da4b6e1 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -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);