Gzip.py

Matej Cepl Cepl at fpm.cz
Mon May 31 09:09:19 EDT 1999


Hi,

I tried to play with gzip.py and it doesn't seem to work. Enclosed
module produced output which Windows Commander as well as gzip refused
to accept as correct gzip archive.

Have you any idea, what's wrong?

			Matthew
------------------------------------------------------------------------
--------
import gzip
import os

inf = open('fre-en_2.htm','r')
outf = gzip.open('fre-en_2.htm.gz','w')
content = inf.read()
inf.close()
print "Debug: content is:"
print content
outf.write(content)
outf.flush()
outf.close()
print "Debug: END"




More information about the Python-list mailing list