bpo-43439: Wrapt the tuple in the audit events for the gc module (GH-24836)

This commit is contained in:
Pablo Galindo 2021-03-14 04:04:47 +01:00 committed by GitHub
parent f2b45367f1
commit 9c376bc1c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1690,7 +1690,7 @@ Return the list of objects that directly refer to any of objs.");
static PyObject *
gc_get_referrers(PyObject *self, PyObject *args)
{
if (PySys_Audit("gc.get_referrers", "O", args) < 0) {
if (PySys_Audit("gc.get_referrers", "(O)", args) < 0) {
return NULL;
}
@ -1724,7 +1724,7 @@ static PyObject *
gc_get_referents(PyObject *self, PyObject *args)
{
Py_ssize_t i;
if (PySys_Audit("gc.get_referents", "O", args) < 0) {
if (PySys_Audit("gc.get_referents", "(O)", args) < 0) {
return NULL;
}
PyObject *result = PyList_New(0);