]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-114332: Fix the flags reference for ``re.compile()`` (GH-114334) (#114339)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 20 Jan 2024 11:23:37 +0000 (12:23 +0100)
committerGitHub <noreply@github.com>
Sat, 20 Jan 2024 11:23:37 +0000 (11:23 +0000)
gh-114332: Fix the flags reference for ``re.compile()`` (GH-114334)

The GH-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.

(cherry picked from commit 567a85e9c15a3f7848330ae7bef3de2f70fc9f97)

Co-authored-by: David H. Gutteridge <dhgutteridge@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
Doc/library/re.rst

index 07e57f1582d5e895d3f1ba0e5eb3c13d223067cd..61aaf14adad6a6d4f1c28021532e7175115fe1bf 100644 (file)
@@ -880,8 +880,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 `flags`_ variables, combined using bitwise OR
+   (the ``|`` operator).
 
    The sequence ::