This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients dstufft, eric.araujo, martin.panter
Date 2015-05-20.05:48:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1432100898.34.0.483516641129.issue24245@psf.upfronthosting.co.za>
In-reply-to
Content
These changes remove exception handlers that simply reraise the exception. They are not needed because either they are at the end of the exception handler list, or the exception being reraised would not be caught by any other handler (e.g. no need to reraise SystemExit if you are only interested in Exception). I think they make the code more confusing to read.

I noticed the tkinter/font.py dead code when reading the code, Victor Stinner pointed out the distutils case in Issue 21259, and I found the rest by searching for similar cases.

 Lib/distutils/core.py        |   2 --
 Lib/idlelib/idle.pyw         |  26 +++++++++++---------------
 Lib/idlelib/rpc.py           |   5 +----
 Lib/test/regrtest.py         |   4 ----
 Lib/test/test_queue.py       |  10 +++-------
 Lib/test/test_urllib2net.py  |   2 --
 Lib/tkinter/font.py          |   2 --
 Lib/unittest/test/support.py |   4 ----
History
Date User Action Args
2015-05-20 05:48:18martin.pantersetrecipients: + martin.panter, eric.araujo, dstufft
2015-05-20 05:48:18martin.pantersetmessageid: <1432100898.34.0.483516641129.issue24245@psf.upfronthosting.co.za>
2015-05-20 05:48:18martin.panterlinkissue24245 messages
2015-05-20 05:48:18martin.pantercreate