From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sat, 20 Jan 2024 11:23:23 +0000 (+0100) Subject: [3.11] gh-114332: Fix the flags reference for ``re.compile()`` (GH-114334) (#114340) X-Git-Tag: v3.11.8~120 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=685d88d8ad6c634b36685362928020ca5989e8ec;p=thirdparty%2FPython%2Fcpython.git [3.11] gh-114332: Fix the flags reference for ``re.compile()`` (GH-114334) (#114340) 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 Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com> --- diff --git a/Doc/library/re.rst b/Doc/library/re.rst index 8ddfce79a1b0..45d1b6c0cdbd 100644 --- a/Doc/library/re.rst +++ b/Doc/library/re.rst @@ -879,8 +879,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 ::