]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39394: Improve warning message in the re module (GH-31988)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 19 Mar 2022 14:09:45 +0000 (07:09 -0700)
committerGitHub <noreply@github.com>
Sat, 19 Mar 2022 14:09:45 +0000 (07:09 -0700)
commit906f1a4a95e9ca82171a40a28b16533a14fa339c
treefccdb6d24098bd35d9c39419af0b803a7741fe8b
parentc1f327f30db09388fc777196e233b7a6182c6efa
bpo-39394: Improve warning message in the re module (GH-31988)

A warning about inline flags not at the start of the regular
expression now contains the position of the flag.
(cherry picked from commit 4142961b9f5ad3bf93976a6a7162f8049e354018)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/sre_parse.py
Lib/test/test_re.py
Misc/NEWS.d/next/Library/2022-03-19-13-38-29.bpo-39394.7j6WL6.rst [new file with mode: 0644]