summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Skeleton (bot) <31488909+miss-islington@users.noreply.github.com>2020-10-19 15:39:25 (GMT)
committerGitHub <noreply@github.com>2020-10-19 15:39:25 (GMT)
commit2ee6ef98b4cf94f4c21cc4301d4e226b70809c7e (patch)
treea2cd1f700e93286084f7ff3452812fa28bdd54dc
parent7c949020ef2520d7a7cbc978f0b34423e6c2a94c (diff)
downloadcpython-2ee6ef98b4cf94f4c21cc4301d4e226b70809c7e.zip
cpython-2ee6ef98b4cf94f4c21cc4301d4e226b70809c7e.tar.gz
cpython-2ee6ef98b4cf94f4c21cc4301d4e226b70809c7e.tar.bz2
bpo-41192: Fix some broken anchors for audit event entries (GH-21310) (GH-22767)
(cherry picked from commit ebc8c3828779374b9be4fae5c8ffc0059d36ac8c) Co-authored-by: Saiyang Gou <gousaiyang@163.com>
-rw-r--r--Doc/library/ctypes.rst3
-rw-r--r--Doc/library/poplib.rst2
-rw-r--r--Doc/using/cmdline.rst2
3 files changed, 3 insertions, 4 deletions
diff --git a/Doc/library/ctypes.rst b/Doc/library/ctypes.rst
index 2d6c6d0..c172d53 100644
--- a/Doc/library/ctypes.rst
+++ b/Doc/library/ctypes.rst
@@ -1618,7 +1618,7 @@ They are instances of a private class:
``ctypes.seh_exception`` with argument ``code`` will be raised, allowing an
audit hook to replace the exception with its own.
-.. audit-event:: ctypes.call_function func_pointer,arguments ctype-foreign-functions
+.. audit-event:: ctypes.call_function func_pointer,arguments foreign-functions
Some ways to invoke foreign function calls may raise an auditing event
``ctypes.call_function`` with arguments ``function pointer`` and ``arguments``.
@@ -2545,4 +2545,3 @@ Arrays and pointers
Returns the object to which to pointer points. Assigning to this
attribute changes the pointer to point to the assigned object.
-
diff --git a/Doc/library/poplib.rst b/Doc/library/poplib.rst
index 2f349b3..9bf9212 100644
--- a/Doc/library/poplib.rst
+++ b/Doc/library/poplib.rst
@@ -67,7 +67,7 @@ The :mod:`poplib` module provides two classes:
.. audit-event:: poplib.connect self,host,port poplib.POP3_SSL
- .. audit-event:: poplib.putline self,line popplib.POP3_SSL
+ .. audit-event:: poplib.putline self,line poplib.POP3_SSL
All commands will raise an :ref:`auditing event <auditing>`
``poplib.putline`` with arguments ``self`` and ``line``,
diff --git a/Doc/using/cmdline.rst b/Doc/using/cmdline.rst
index f91ab02..95342f3 100644
--- a/Doc/using/cmdline.rst
+++ b/Doc/using/cmdline.rst
@@ -555,7 +555,7 @@ conflict.
the interactive session. You can also change the prompts :data:`sys.ps1` and
:data:`sys.ps2` and the hook :data:`sys.__interactivehook__` in this file.
- .. audit-event:: cpython.run_startup filename PYTHONSTARTUP
+ .. audit-event:: cpython.run_startup filename envvar-PYTHONSTARTUP
Raises an :ref:`auditing event <auditing>` ``cpython.run_startup`` with
the filename as the argument when called on startup.