]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-43439: Wrapt the tuple in the audit events for the gc module (GH-24836)
authorPablo Galindo <Pablogsal@gmail.com>
Sun, 14 Mar 2021 03:04:47 +0000 (04:04 +0100)
committerGitHub <noreply@github.com>
Sun, 14 Mar 2021 03:04:47 +0000 (04:04 +0100)
Modules/gcmodule.c

index 225da2b20959250cbc064b1e83566d35763bfd2a..d6b51426c4e2d8ea14549eb169b9bf81a64569ad 100644 (file)
@@ -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);