I recently installed python 2.4, and many installed software packages
stopped working. Some things got working after I copied some files and
directories from /usr/lib/python2.3/site-packages to
/usr/lib/python2.4/site-packages, but I also had to install a newer
PyXml package, as some of the files t
Thanks, now the code is
from cStringIO import StringIO
from gzip import GzipFile
...
body = GzipFile('','r',0,StringIO(body)).read()
Regards, Enrique
--
http://mail.python.org/mailman/listinfo/python-list
I have a string which I try to decompress:
body = zlib.decompress(body)
but I get
zlib.error: Error -3 while decompressing data: incorrect header check
However, I can write the string to a file and run gunzip with the
expected results:
f = open('/tmp/bd.gz', 'w')
f.write(body)
f.clos