[issue24245] Eliminate do-nothing exception handlers

2015-05-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Committed all changes except test_queue.py. Looks as this file is worth separate issue for refactoring. For example asserRaises() can be used in multiple places instead of try/fail/except idiom. May be there is other non-idiomatic code. -- resolutio

[issue24245] Eliminate do-nothing exception handlers

2015-05-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 004c689d259c by Serhiy Storchaka in branch 'default': Issue #24245: Eliminated senseless expect clauses that have no any effect. https://hg.python.org/cpython/rev/004c689d259c New changeset 56e1d24806b3 by Serhiy Storchaka in branch '2.7': Issue #24

[issue24245] Eliminate do-nothing exception handlers

2015-05-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Changes look mostly good, but IDLE changes should be applied to all versions and the code in test_queue.py is dim. -- ___ Python tracker ___

[issue24245] Eliminate do-nothing exception handlers

2015-05-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list ma

[issue24245] Eliminate do-nothing exception handlers

2015-05-19 Thread Martin Panter
New submission from Martin Panter: 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