summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d/next/Library/2022-04-10-17-12-23.gh-issue-91230.T1d_fG.rst
diff options
context:
space:
mode:
authorZac Hatfield-Dodds <zac.hatfield.dodds@gmail.com>2022-04-24 00:55:22 (GMT)
committerGitHub <noreply@github.com>2022-04-24 00:55:22 (GMT)
commitb4e048411f4c62ad7343bca32c307f0bf5ef74b4 (patch)
tree5bf8f8dca04efab3796b05952dee9035bf9f72b8 /Misc/NEWS.d/next/Library/2022-04-10-17-12-23.gh-issue-91230.T1d_fG.rst
parent692e9078a10b268530f8da7d3095cfb05c48435b (diff)
downloadcpython-b4e048411f4c62ad7343bca32c307f0bf5ef74b4.zip
cpython-b4e048411f4c62ad7343bca32c307f0bf5ef74b4.tar.gz
cpython-b4e048411f4c62ad7343bca32c307f0bf5ef74b4.tar.bz2
gh-91230: Concise catch_warnings with simplefilter (#91435)
Diffstat (limited to 'Misc/NEWS.d/next/Library/2022-04-10-17-12-23.gh-issue-91230.T1d_fG.rst')
-rw-r--r--Misc/NEWS.d/next/Library/2022-04-10-17-12-23.gh-issue-91230.T1d_fG.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2022-04-10-17-12-23.gh-issue-91230.T1d_fG.rst b/Misc/NEWS.d/next/Library/2022-04-10-17-12-23.gh-issue-91230.T1d_fG.rst
new file mode 100644
index 0000000..1efc7af
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2022-04-10-17-12-23.gh-issue-91230.T1d_fG.rst
@@ -0,0 +1,3 @@
+:func:`warnings.catch_warnings` now accepts arguments for
+:func:`warnings.simplefilter`, providing a more concise way to
+locally ignore warnings or convert them to errors.