mirror of
https://github.com/python/cpython.git
synced 2025-09-29 19:56:59 +00:00
[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 9c376bc1c4
)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* Update gcmodule.c
* Update gcmodule.c
* Update gcmodule.c
This commit is contained in:
parent
45d9c8cda3
commit
e6bf1e1001
1 changed files with 2 additions and 2 deletions
|
@ -1675,7 +1675,7 @@ gc_get_referrers(PyObject *self, PyObject *args)
|
||||||
PyThreadState *tstate = _PyThreadState_GET();
|
PyThreadState *tstate = _PyThreadState_GET();
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (PySys_Audit("gc.get_referrers", "O", args) < 0) {
|
if (PySys_Audit("gc.get_referrers", "(O)", args) < 0) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1709,7 +1709,7 @@ static PyObject *
|
||||||
gc_get_referents(PyObject *self, PyObject *args)
|
gc_get_referents(PyObject *self, PyObject *args)
|
||||||
{
|
{
|
||||||
Py_ssize_t i;
|
Py_ssize_t i;
|
||||||
if (PySys_Audit("gc.get_referents", "O", args) < 0) {
|
if (PySys_Audit("gc.get_referents", "(O)", args) < 0) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
PyObject *result = PyList_New(0);
|
PyObject *result = PyList_New(0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue