summaryrefslogtreecommitdiffstats
path: root/Modules/gcmodule.c
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2021-03-14 03:04:47 (GMT)
committerGitHub <noreply@github.com>2021-03-14 03:04:47 (GMT)
commit9c376bc1c4c8bcddb0bc4196b79ec8c75da494a8 (patch)
treec1994b88cc086bfba0db8dd32ed3165e7ccd2b3a /Modules/gcmodule.c
parentf2b45367f1c049da76f81fb2920449b4909e0638 (diff)
downloadcpython-9c376bc1c4c8bcddb0bc4196b79ec8c75da494a8.zip
cpython-9c376bc1c4c8bcddb0bc4196b79ec8c75da494a8.tar.gz
cpython-9c376bc1c4c8bcddb0bc4196b79ec8c75da494a8.tar.bz2
bpo-43439: Wrapt the tuple in the audit events for the gc module (GH-24836)
Diffstat (limited to 'Modules/gcmodule.c')
-rw-r--r--Modules/gcmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c
index 225da2b..d6b5142 100644
--- a/Modules/gcmodule.c
+++ b/Modules/gcmodule.c
@@ -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);