[issue16141] Possible simplification for logging.StreamHandler exception handling

Serhiy Storchaka report at bugs.python.org
Fri Oct 5 19:41:40 CEST 2012


Serhiy Storchaka added the comment:

> Couldn't this be simplified to the following?

I think this is idiomatic now (since 2.5).

There are some places where similar outdated code used. See the attached patch. There are more dubious places in Lib/multiprocessing/managers.py and Lib/asyncore.py.

----------
keywords: +patch
nosy: +serhiy.storchaka
Added file: http://bugs.python.org/file27435/reraise_keyboard_interrupt.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16141>
_______________________________________


More information about the Python-bugs-list mailing list