summaryrefslogtreecommitdiffstats
path: root/Objects/codeobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/codeobject.c')
-rw-r--r--Objects/codeobject.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Objects/codeobject.c b/Objects/codeobject.c
index 62d7c5d..f4e48a9 100644
--- a/Objects/codeobject.c
+++ b/Objects/codeobject.c
@@ -380,6 +380,12 @@ code_new(PyTypeObject *type, PyObject *args, PyObject *kw)
&PyTuple_Type, &cellvars))
return NULL;
+ if (PySys_Audit("code.__new__", "OOOiiiii",
+ code, filename, name, argcount, kwonlyargcount,
+ nlocals, stacksize, flags) < 0) {
+ goto cleanup;
+ }
+
if (argcount < 0) {
PyErr_SetString(
PyExc_ValueError,