This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:16karldsetrecipients: + karld, georg.brandl, pitrou, lucas_malor, florianfesti
2009-12-22 21:21:15karldsetmessageid: <1261516875.7.0.482181077341.issue1675951@psf.upfronthosting.co.za>
2009-12-22 21:21:13karldlinkissue1675951 messages
2009-12-22 21:21:13karldcreate