Message96817
This patch is awesome. It makes it possible to do this with http
response objects that return gzipped streams:
>>> conn = httplib.HTTPConnection('blah')
>>> req = conn.request('GET', 'a.gz')
>>> resp = conn.getresponse()
>>> unzipper = gzip.GzipFile(fileobj=resp)
# read just the first 100 lines
>>> for i in range(100):
print unzipper.readline() |
|
Date |
User |
Action |
Args |
2009-12-22 21:21:16 | karld | set | recipients:
+ karld, georg.brandl, pitrou, lucas_malor, florianfesti |
2009-12-22 21:21:15 | karld | set | messageid: <1261516875.7.0.482181077341.issue1675951@psf.upfronthosting.co.za> |
2009-12-22 21:21:13 | karld | link | issue1675951 messages |
2009-12-22 21:21:13 | karld | create | |
|