Skip to content

Commit 9c376bc

Browse files
authored
bpo-43439: Wrapt the tuple in the audit events for the gc module (GH-24836)
1 parent f2b4536 commit 9c376bc

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
@@ -1690,7 +1690,7 @@ Return the list of objects that directly refer to any of objs.");
16901690
static PyObject *
16911691
gc_get_referrers(PyObject *self, PyObject *args)
16921692
{
1693-
if (PySys_Audit("gc.get_referrers", "O", args) < 0) {
1693+
if (PySys_Audit("gc.get_referrers", "(O)", args) < 0) {
16941694
return NULL;
16951695
}
16961696

@@ -1724,7 +1724,7 @@ static PyObject *
17241724
gc_get_referents(PyObject *self, PyObject *args)
17251725
{
17261726
Py_ssize_t i;
1727-
if (PySys_Audit("gc.get_referents", "O", args) < 0) {
1727+
if (PySys_Audit("gc.get_referents", "(O)", args) < 0) {
17281728
return NULL;
17291729
}
17301730
PyObject *result = PyList_New(0);

0 commit comments

Comments
 (0)