Skip to content

Commit 8e6b516

Browse files
Use the standard audit event format for sys.monitoring docs
1 parent 5334732 commit 8e6b516

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Doc/library/sys.monitoring.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,14 +335,13 @@ To register a callable for events call
335335
it is unregistered and returned.
336336
Otherwise :func:`register_callback` returns ``None``.
337337

338+
.. audit-event:: sys.monitoring.register_callback func sys.monitoring.register_callback
338339

339340
Functions can be unregistered by calling
340341
``sys.monitoring.register_callback(tool_id, event, None)``.
341342

342343
Callback functions can be registered and unregistered at any time.
343344

344-
Registering or unregistering a callback function will generate a :func:`sys.audit` event.
345-
346345

347346
Callback function arguments
348347
'''''''''''''''''''''''''''

0 commit comments

Comments
 (0)