summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-03-24 23:30:32 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-03-24 23:30:32 (GMT)
commit27461683a9491efe58331a695c856fbb28bd4cba (patch)
treec9e1aa4c40c2da0246bcd6ef889f26b60c30a6d8 /Misc
parente0511e797c483e1203a096ff96e34dc95368f843 (diff)
downloadcpython-27461683a9491efe58331a695c856fbb28bd4cba.zip
cpython-27461683a9491efe58331a695c856fbb28bd4cba.tar.gz
cpython-27461683a9491efe58331a695c856fbb28bd4cba.tar.bz2
warnings.formatwarning(): catch exceptions
Issue #21925: warnings.formatwarning() now catches exceptions on linecache.getline(...) to be able to log ResourceWarning emitted late during the Python shutdown process.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 0058124..3baeeec 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -94,6 +94,10 @@ Core and Builtins
Library
-------
+- Issue #21925: :func:`warnings.formatwarning` now catches exceptions on
+ ``linecache.getline(...)`` to be able to log :exc:`ResourceWarning` emitted
+ late during the Python shutdown process.
+
- Issue #24266: Ctrl+C during Readline history search now cancels the search
mode when compiled with Readline 7.