Skip to content

Commit

Permalink
[3.9] bpo-43439: Wrapt the tuple in the audit events for the gc module (
Browse files Browse the repository at this point in the history
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 9c376bc)

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

* Update gcmodule.c

* Update gcmodule.c

* Update gcmodule.c
  • Loading branch information
pablogsal authored Mar 14, 2021
1 parent 45d9c8c commit e6bf1e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modules/gcmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -1675,7 +1675,7 @@ gc_get_referrers(PyObject *self, PyObject *args)
PyThreadState *tstate = _PyThreadState_GET();
int i;

if (PySys_Audit("gc.get_referrers", "O", args) < 0) {
if (PySys_Audit("gc.get_referrers", "(O)", args) < 0) {
return NULL;
}

Expand Down Expand Up @@ -1709,7 +1709,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);
Expand Down

0 comments on commit e6bf1e1

Please sign in to comment.