abcat / pypng

Automatically exported from code.google.com/p/pypng
0 stars 0 forks source link

PyPNG opened files cannot be closed. #45

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Polite resource management demands that any file that PyPNG opens it also 
closes.

If you supply a filename to the png.Reader class then PyPNG will open the file, 
but there is no way 
to close it (except by waiting for the file to become unreachable and its 
finalizer to be run).

Original issue reported on code.google.com by d...@pobox.com on 12 Apr 2009 at 5:11