From a45d3fd8bedfeb2af3fa3c068b0a361311a1b74b Mon Sep 17 00:00:00 2001 From: Tian Gao Date: Thu, 17 Jul 2025 11:43:20 -0700 Subject: [PATCH] =?UTF-8?q?[3.13]=20gh-136697:=20Use=20the=20standard=20au?= =?UTF-8?q?dit=20event=20format=20for=20sys.monitor=E2=80=A6=20(#136750)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [3.13] gh-136697: Use the standard audit event format for sys.monitoring docs (GH-136747) (cherry picked from commit 28937d3a21cf8168c853ae43374a8287c21f71c9) Co-authored-by: Tian Gao --- Doc/library/sys.monitoring.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Doc/library/sys.monitoring.rst b/Doc/library/sys.monitoring.rst index d43b4742569..8fdddbb7bfe 100644 --- a/Doc/library/sys.monitoring.rst +++ b/Doc/library/sys.monitoring.rst @@ -314,14 +314,13 @@ To register a callable for events call it is unregistered and returned. Otherwise :func:`register_callback` returns ``None``. + .. audit-event:: sys.monitoring.register_callback func sys.monitoring.register_callback Functions can be unregistered by calling ``sys.monitoring.register_callback(tool_id, event, None)``. Callback functions can be registered and unregistered at any time. -Registering or unregistering a callback function will generate a :func:`sys.audit` event. - Callback function arguments '''''''''''''''''''''''''''