]> 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:34:58 +0000 (04:34 -0800)
committerGitHub <noreply@github.com>
Sun, 5 Jan 2020 12:34:58 +0000 (04:34 -0800)
commit43fbc70360b2a934ea809b2175d7e99031db2df3
treeb3d5638512d964a1dbcb6149449b1cadf1dd58e3
parent3bdb2d9daf3ce41b325bd508e3dd29041e85dd1f
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]