]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39056: Fix handling invalid warning category in the -W option. (GH-17618)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 5 Jan 2020 12:33:08 +0000 (04:33 -0800)
committerGitHub <noreply@github.com>
Sun, 5 Jan 2020 12:33:08 +0000 (04:33 -0800)
commite1caa49f68dd63b534774aebad0c240143e6fb5d
treed4f13d915dc4adfb4e1c7968165e77a3694c276a
parentfc84d501b9d77701cbdd485de45e200bf027c0e9
bpo-39056: Fix handling invalid warning category in the -W option. (GH-17618)

No longer import the re module if it is not needed.
(cherry picked from commit 41ec17e45d54473d32f543396293256f1581e44d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/test_warnings/__init__.py
Lib/warnings.py
Misc/NEWS.d/next/Library/2019-12-15-21-05-16.bpo-39056.nEfUM9.rst [new file with mode: 0644]