homepage

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 ncoghlan
Recipients ncoghlan
Date 2012年09月18日.07:40:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1347954020.8.0.36541508073.issue15960@psf.upfronthosting.co.za>
In-reply-to
Content
logging.shutdown includes a try/except block to avoid emitting spurious IO errors while the interpreter is shutting down. This fails if a registered handler tries to do IO (such as calling flush()) in its release method.
It would be better if the flush-and-close block was written as:
 try:
 hr.acquire()
 try:
 hr.flush()
 hr.close()
 finally:
 hr.release()
 except (IOError, ValueError):
 # Tolerate handlers that try to do IO in release()
History
Date User Action Args
2012年09月18日 07:40:20ncoghlansetrecipients: + ncoghlan
2012年09月18日 07:40:20ncoghlansetmessageid: <1347954020.8.0.36541508073.issue15960@psf.upfronthosting.co.za>
2012年09月18日 07:40:20ncoghlanlinkissue15960 messages
2012年09月18日 07:40:19ncoghlancreate

AltStyle によって変換されたページ (->オリジナル) /