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

pablogsal webhook-mailer at python.org
Sat Mar 13 22:04:55 EST 2021


https://github.com/python/cpython/commit/9c376bc1c4c8bcddb0bc4196b79ec8c75da494a8
commit: 9c376bc1c4c8bcddb0bc4196b79ec8c75da494a8
branch: master
author: Pablo Galindo <Pablogsal at gmail.com>
committer: pablogsal <Pablogsal at gmail.com>
date: 2021-03-14T04:04:47+01:00
summary:

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

files:
M Modules/gcmodule.c

diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c
index 225da2b209592..d6b51426c4e2d 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);



More information about the Python-checkins mailing list