Message170635
| 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:20 | ncoghlan | set | recipients:
+ ncoghlan |
| 2012年09月18日 07:40:20 | ncoghlan | set | messageid: <1347954020.8.0.36541508073.issue15960@psf.upfronthosting.co.za> |
| 2012年09月18日 07:40:20 | ncoghlan | link | issue15960 messages |
| 2012年09月18日 07:40:19 | ncoghlan | create |
|