[Patches] [ python-Patches-443899 ] Minor fix to gzip.py module.

noreply@sourceforge.net noreply@sourceforge.net
Mon, 23 Jul 2001 12:37:44 -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.



----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=443899&group_id=5470