]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-136697: Use the standard audit event format for sys.monitor… (#136750)
authorTian Gao <gaogaotiantian@hotmail.com>
Thu, 17 Jul 2025 18:43:20 +0000 (11:43 -0700)
committerGitHub <noreply@github.com>
Thu, 17 Jul 2025 18:43:20 +0000 (11:43 -0700)
* [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 <gaogaotiantian@hotmail.com>
Doc/library/sys.monitoring.rst

index d43b4742569d7134f3573a86caf499ca82ed7994..8fdddbb7bfea8172e53c3e8ece18b1a697b82aae 100644 (file)
@@ -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
 '''''''''''''''''''''''''''