]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.9] bpo-43439: Wrapt the tuple in the audit events for the gc module (GH-24836...
authorPablo Galindo <Pablogsal@gmail.com>
Sun, 14 Mar 2021 05:28:37 +0000 (06:28 +0100)
committerGitHub <noreply@github.com>
Sun, 14 Mar 2021 05:28:37 +0000 (05:28 +0000)
* [3.9] bpo-43439: Wrapt the tuple in the audit events for the gc module (GH-24836).
(cherry picked from commit 9c376bc1c4c8bcddb0bc4196b79ec8c75da494a8)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* Update gcmodule.c

* Update gcmodule.c

* Update gcmodule.c

Modules/gcmodule.c

index 52443debb12503094c982b83af13c94d5a2a83ef..2c6ef9252eae86ed6f43ca0060eb3ef3519da2d9 100644 (file)
@@ -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;
     }
 
@@ -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);