summaryrefslogtreecommitdiffstats
path: root/Objects/codeobject.c
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2021-11-27 00:26:45 (GMT)
committerGitHub <noreply@github.com>2021-11-27 00:26:45 (GMT)
commitdb55f3fabafc046e4fca907210ced4ce16bf58d6 (patch)
tree5fe7ad44cf63c73f7820195b2c37d9ed96232469 /Objects/codeobject.c
parent7edb6270a78c695e4c2ae2432797dc18105374fc (diff)
downloadcpython-db55f3fabafc046e4fca907210ced4ce16bf58d6.zip
cpython-db55f3fabafc046e4fca907210ced4ce16bf58d6.tar.gz
cpython-db55f3fabafc046e4fca907210ced4ce16bf58d6.tar.bz2
bpo-44530: Reverts a change to the 'code.__new__' audit event (GH-29809)
Diffstat (limited to 'Objects/codeobject.c')
-rw-r--r--Objects/codeobject.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Objects/codeobject.c b/Objects/codeobject.c
index 8de5c4d..5ab8641 100644
--- a/Objects/codeobject.c
+++ b/Objects/codeobject.c
@@ -1254,8 +1254,8 @@ code_new_impl(PyTypeObject *type, int argcount, int posonlyargcount,
PyObject *ourfreevars = NULL;
PyObject *ourcellvars = NULL;
- if (PySys_Audit("code.__new__", "OOOOiiiiii",
- code, filename, name, qualname, argcount, posonlyargcount,
+ if (PySys_Audit("code.__new__", "OOOiiiiii",
+ code, filename, name, argcount, posonlyargcount,
kwonlyargcount, nlocals, stacksize, flags) < 0) {
goto cleanup;
}
@@ -1638,8 +1638,8 @@ code_replace_impl(PyCodeObject *self, int co_argcount,
#undef CHECK_INT_ARG
- if (PySys_Audit("code.__new__", "OOOOiiiiii",
- co_code, co_filename, co_name, co_qualname, co_argcount,
+ if (PySys_Audit("code.__new__", "OOOiiiiii",
+ co_code, co_filename, co_name, co_argcount,
co_posonlyargcount, co_kwonlyargcount, co_nlocals,
co_stacksize, co_flags) < 0) {
return NULL;