]> granicus.if.org Git - python/commit
warnings.formatwarning(): catch exceptions
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 24 Mar 2016 23:30:32 +0000 (00:30 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Thu, 24 Mar 2016 23:30:32 +0000 (00:30 +0100)
commit27461683a9491efe58331a695c856fbb28bd4cba
treec9e1aa4c40c2da0246bcd6ef889f26b60c30a6d8
parente0511e797c483e1203a096ff96e34dc95368f843
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.
Lib/test/test_warnings/__init__.py
Lib/warnings.py
Misc/NEWS