Mark Gius added the comment:

Here's more or less the same fix and test on 2.7.  I jumped through the hoop to 
preserve the original exception and traceback even if os.close() raises an 
exception.

This follows the 3.3 branch's cleanup behavior of silently suppressing errors 
in the cleanup code.

----------
Added file: http://bugs.python.org/file27781/fix_16327_on_2.7.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16327>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to