this may help you in http://mail.python.org/pipermail/pyt...er/349718.html>>fileToStr = fileToCompress.read()
import gzip
fileZipped = gzip.GzipFile('finalcallejon.mb.gz', 'wb', 9)
fileZipped.write(fileToStr)
fileZipped.close()
have a nice day
Python doc problem example: gzip module (reprise)
|