[Python-checkins] [3.9] bpo-43439: Wrapt the tuple in the audit events for the gc module (GH-24836) (GH-24855)

pablogsal webhook-mailer at python.org
Sun Mar 14 00:28:41 EST 2021


https://github.com/python/cpython/commit/e6bf1e1001a6844a36f2f90f58ab12b9e09e3887
commit: e6bf1e1001a6844a36f2f90f58ab12b9e09e3887
branch: 3.9
author: Pablo Galindo <Pablogsal at gmail.com>
committer: pablogsal <Pablogsal at gmail.com>
date: 2021-03-14T05:28:37Z
summary:

[3.9] bpo-43439: Wrapt the tuple in the audit events for the gc module (GH-24836) (GH-24855)

* [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 at gmail.com>

* Update gcmodule.c

* Update gcmodule.c

* Update gcmodule.c

files:
M Modules/gcmodule.c

diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c
index 52443debb1250..2c6ef9252eae8 100644
--- a/Modules/gcmodule.c
+++ b/Modules/gcmodule.c
@@ -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);



More information about the Python-checkins mailing list