[Patches] [ python-Patches-443899 ] Minor fix to gzip.py module.
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 14 Aug 2001 12:15:19 -0700
Patches item #443899, was opened at 2001-07-23 12:35
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=443899&group_id=5470
Category: library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Titus Brown (titus)
>Assigned to: Jeremy Hylton (jhylton)
Summary: Minor fix to gzip.py module.
Initial Comment:
---
from cStringIO import StringIO
from gzip import GzipFile
stringFile = StringIO()
gzFile = GzipFile("test1", 'wb', 9, stringFile)
gzFile.write('howdy there!')
r = gzFile.read()
---
the above code fragment gave a nonintuitive error
response (attribute missing). Now, an exception is
raised stating that the file is not opened for reading
or writing.
----------------------------------------------------------------------
>Comment By: Titus Brown (titus)
Date: 2001-08-14 12:15
Message:
Logged In: YES
user_id=23486
(sorry -- misunderstanding of how the changelog view works)
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=443899&group_id=5470