GH-107774: Add missing audit event for PEP 669 (GH-107775)
This commit is contained in:
@@ -1851,6 +1851,9 @@ monitoring_register_callback_impl(PyObject *module, int tool_id, int event,
|
||||
PyErr_Format(PyExc_ValueError, "invalid event %d", event);
|
||||
return NULL;
|
||||
}
|
||||
if (PySys_Audit("sys.monitoring.register_callback", "O", func) < 0) {
|
||||
return NULL;
|
||||
}
|
||||
if (func == Py_None) {
|
||||
func = NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user