From: Pablo Galindo Date: Sun, 14 Mar 2021 04:30:40 +0000 (+0100) Subject: [3.8] bpo-43439: Wrapt the tuple in the audit events for the gc module (GH-24836... X-Git-Tag: v3.8.9~31 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1e7a47ab86d5d6a5103e67ba71389f6daa18ea2d;p=thirdparty%2FPython%2Fcpython.git [3.8] bpo-43439: Wrapt the tuple in the audit events for the gc module (GH-24836) (GH24854) (cherry picked from commit 9c376bc1c4c8bcddb0bc4196b79ec8c75da494a8) Co-authored-by: Pablo Galindo --- diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c index 7a37a1650d10..81737251b725 100644 --- a/Modules/gcmodule.c +++ b/Modules/gcmodule.c @@ -1480,7 +1480,7 @@ static PyObject * gc_get_referrers(PyObject *self, PyObject *args) { int i; - if (PySys_Audit("gc.get_referrers", "O", args) < 0) { + if (PySys_Audit("gc.get_referrers", "(O)", args) < 0) { return NULL; } @@ -1512,7 +1512,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);