This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jfinkels
Recipients ack, eric.araujo, jfinkels, pitrou
Date 2010-09-14.03:34:13
SpamBayes Score 6.0388166e-09
Marked as misclassified No
Message-id <1284435257.28.0.226368788445.issue9759@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-09-14 03:34:18jfinkelssetrecipients: + jfinkels, pitrou, eric.araujo, ack
2010-09-14 03:34:17jfinkelssetmessageid: <1284435257.28.0.226368788445.issue9759@psf.upfronthosting.co.za>
2010-09-14 03:34:15jfinkelslinkissue9759 messages
2010-09-14 03:34:15jfinkelscreate