Jeffrey Finkelstein <jeffrey.finkelst...@gmail.com> added the comment:
Here is a patch for the py3k branch which adds a check for whether the GzipFile is closed on each call to GzipFile.read(). If the file is closed already, the method raises a ValueError if it is (with the message text copied from the corresponding fileobject's error message). I added an assertion to the test_read() method in Lib/test/test_gzip.py. The changes will be exactly the same for the 2.7 branch. ---------- keywords: +patch nosy: +jfinkels Added file: http://bugs.python.org/file18874/issue9759.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9759> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com