summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2021-06-30 16:21:37 (GMT)
committerGitHub <noreply@github.com>2021-06-30 16:21:37 (GMT)
commit139de04518bd98a975b7c98ab8a38e570dc585e4 (patch)
treebd1b6f601221f24623dc618faf173bc7165f1cf0 /Doc/library
parent86eeeb425936ba67d79f32bfbd5c5f8002819438 (diff)
downloadcpython-139de04518bd98a975b7c98ab8a38e570dc585e4.zip
cpython-139de04518bd98a975b7c98ab8a38e570dc585e4.tar.gz
cpython-139de04518bd98a975b7c98ab8a38e570dc585e4.tar.bz2
bpo-41180: Replace marshal code.__new__ audit event with marshal.load[s] and marshal.dumps (GH-26961)
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/marshal.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/library/marshal.rst b/Doc/library/marshal.rst
index d65afc2..458c0d53 100644
--- a/Doc/library/marshal.rst
+++ b/Doc/library/marshal.rst
@@ -66,6 +66,8 @@ The module defines these functions:
The *version* argument indicates the data format that ``dump`` should use
(see below).
+ .. audit-event:: marshal.dumps value,version marshal.dump
+
.. function:: load(file)
@@ -74,6 +76,8 @@ The module defines these functions:
format), raise :exc:`EOFError`, :exc:`ValueError` or :exc:`TypeError`. The
file must be a readable :term:`binary file`.
+ .. audit-event:: marshal.loads bytes marshal.load
+
.. note::
If an object containing an unsupported type was marshalled with :func:`dump`,
@@ -89,6 +93,8 @@ The module defines these functions:
The *version* argument indicates the data format that ``dumps`` should use
(see below).
+ .. audit-event:: marshal.dumps value,version marshal.dump
+
.. function:: loads(bytes)
@@ -96,6 +102,8 @@ The module defines these functions:
:exc:`EOFError`, :exc:`ValueError` or :exc:`TypeError`. Extra bytes in the
input are ignored.
+ .. audit-event:: marshal.loads bytes marshal.load
+
In addition, the following constants are defined: