matplotlib/matplotlib — pull request #794 by mdboom (2012-03-23 20:49:06+00:00)
Title: File closing

This is a backport to v1.1.x of this commit

https://github.com/matplotlib/matplotlib/commit/4cb2aaa87b0aa9efe7178d7510d3d091ef5206df

It tries to be more careful about closing open file handles to prevent file handle exhaustion on Windows.