Skip to content

Commit 1e7a47a

Browse files
authored
[3.8] bpo-43439: Wrapt the tuple in the audit events for the gc module (GH-24836) (GH24854)
(cherry picked from commit 9c376bc) Co-authored-by: Pablo Galindo <[email protected]>
1 parent 9f935fa commit 1e7a47a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/gcmodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1480,7 +1480,7 @@ static PyObject *
14801480
gc_get_referrers(PyObject *self, PyObject *args)
14811481
{
14821482
int i;
1483-
if (PySys_Audit("gc.get_referrers", "O", args) < 0) {
1483+
if (PySys_Audit("gc.get_referrers", "(O)", args) < 0) {
14841484
return NULL;
14851485
}
14861486

@@ -1512,7 +1512,7 @@ static PyObject *
15121512
gc_get_referents(PyObject *self, PyObject *args)
15131513
{
15141514
Py_ssize_t i;
1515-
if (PySys_Audit("gc.get_referents", "O", args) < 0) {
1515+
if (PySys_Audit("gc.get_referents", "(O)", args) < 0) {
15161516
return NULL;
15171517
}
15181518
PyObject *result = PyList_New(0);

0 commit comments

Comments
 (0)