From: Pablo Galindo Date: Sun, 14 Mar 2021 03:04:47 +0000 (+0100) Subject: bpo-43439: Wrapt the tuple in the audit events for the gc module (GH-24836) X-Git-Tag: v3.10.0a7~158 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9c376bc1c4c8bcddb0bc4196b79ec8c75da494a8;p=thirdparty%2FPython%2Fcpython.git bpo-43439: Wrapt the tuple in the audit events for the gc module (GH-24836) --- diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c index 225da2b20959..d6b51426c4e2 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);