]> granicus.if.org Git - python/commit
Make close() (all versions) ignore IOError from flush().
authorGuido van Rossum <guido@python.org>
Sun, 22 Jul 2007 20:38:07 +0000 (20:38 +0000)
committerGuido van Rossum <guido@python.org>
Sun, 22 Jul 2007 20:38:07 +0000 (20:38 +0000)
commit33e7a8e8134e90635adb88871defc270e0043073
treebff6c8ebe833d833636d4e0791cf72c927766586
parentca73d496ecd5d7addaf3190459e327040958c7a3
Make close() (all versions) ignore IOError from flush().
This makes test_resource.py pass, and I think it's the right thing
to do: if you're closing a file after encountering an I/O error
there's nothing you can do about it.  If you want the error, you
can call flush() yourself.
Lib/io.py