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

* [3.9] bpo-43439: Wrapt the tuple in the audit events for the gc module (GH-24836).
(cherry picked from commit 9c376bc1c4)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>

* Update gcmodule.c

* Update gcmodule.c

* Update gcmodule.c
This commit is contained in:
Pablo Galindo 2021-03-14 06:28:37 +01:00 committed by GitHub
parent 45d9c8cda3
commit e6bf1e1001
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1675,7 +1675,7 @@ gc_get_referrers(PyObject *self, PyObject *args)
PyThreadState *tstate = _PyThreadState_GET(); PyThreadState *tstate = _PyThreadState_GET();
int i; int i;
if (PySys_Audit("gc.get_referrers", "O", args) < 0) { if (PySys_Audit("gc.get_referrers", "(O)", args) < 0) {
return NULL; return NULL;
} }
@ -1709,7 +1709,7 @@ static PyObject *
gc_get_referents(PyObject *self, PyObject *args) gc_get_referents(PyObject *self, PyObject *args)
{ {
Py_ssize_t i; Py_ssize_t i;
if (PySys_Audit("gc.get_referents", "O", args) < 0) { if (PySys_Audit("gc.get_referents", "(O)", args) < 0) {
return NULL; return NULL;
} }
PyObject *result = PyList_New(0); PyObject *result = PyList_New(0);