Message96817
| Author | karld |
|---|---|
| Recipients | florianfesti, georg.brandl, karld, lucas_malor, pitrou |
| Date | 2009-12-22.21:21:13 |
| SpamBayes Score | 0.01737865 |
| Marked as misclassified | No |
| Message-id | <1261516875.7.0.482181077341.issue1675951@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
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() |
|
| History | |||
|---|---|---|---|
| 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 | |