]> 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:59 +0000 (07:09 -0700)
committerGitHub <noreply@github.com>
Sat, 19 Mar 2022 14:09:59 +0000 (07:09 -0700)
commitcbcd2e36d6cbb1d8b6a2b30a2cf1484b7857e7d6
treec0ff1330c9a578654370fae61e00783f2f65df02
parentfcd57996899569ec6b8028bc5b75f973f7074e21
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]