From 83a503c3795de9df3bf6e37f41fd83daab348a99 Mon Sep 17 00:00:00 2001 From: "David H. Gutteridge" Date: Fri, 19 Jan 2024 17:03:57 -0500 Subject: [PATCH 1/2] gh-114332: fix flags reference for re.compile() docs The #93000 change set inadvertently caused a sentence in re.compile() documentation to refer to details that no longer followed. Correct this with a link to the Flags sub-subsection. --- Doc/library/re.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Doc/library/re.rst b/Doc/library/re.rst index 5bb93390aa5f79..dfc059c221b90b 100644 --- a/Doc/library/re.rst +++ b/Doc/library/re.rst @@ -712,6 +712,8 @@ regular expressions. Most non-trivial applications always use the compiled form. +.. _flags: + Flags ^^^^^ @@ -880,8 +882,8 @@ Functions below. The expression's behaviour can be modified by specifying a *flags* value. - Values can be any of the following variables, combined using bitwise OR (the - ``|`` operator). + Values can be any of the :ref:`flags` variables, combined using bitwise OR + (the ``|`` operator). The sequence :: From c5d194185aad596b86c4d2e818e9c227f3f5e24d Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+aa-turner@users.noreply.github.com> Date: Sat, 20 Jan 2024 11:11:35 +0000 Subject: [PATCH 2/2] Simplify --- Doc/library/re.rst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Doc/library/re.rst b/Doc/library/re.rst index dfc059c221b90b..0a8c88b50cdeec 100644 --- a/Doc/library/re.rst +++ b/Doc/library/re.rst @@ -712,8 +712,6 @@ regular expressions. Most non-trivial applications always use the compiled form. -.. _flags: - Flags ^^^^^ @@ -882,7 +880,7 @@ Functions below. The expression's behaviour can be modified by specifying a *flags* value. - Values can be any of the :ref:`flags` variables, combined using bitwise OR + Values can be any of the `flags`_ variables, combined using bitwise OR (the ``|`` operator). The sequence ::