]> granicus.if.org Git - python/commit
(This fix is really by Jeremy)
authorGuido van Rossum <guido@python.org>
Tue, 27 Jan 1998 19:29:45 +0000 (19:29 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 27 Jan 1998 19:29:45 +0000 (19:29 +0000)
commitb16a3b84509f6f66f60bb3c7521b2bee70ac1b1c
tree4db1fab31922818ce355b65b01cdbd80a42e1d35
parent7570669a0838e5b1ae868774f35105107fa1992b
(This fix is really by Jeremy)

Here's my suggested replacement for gzip.py for 1.5.1.  I've
re-implemeted methods readline and readlines, added an _unread, and
tweaked read and _read.

I tried a more complicated buffer scheme for unread (using a list of
strings and string.join), but it was more complicated and slower.
This version is a lot faster than the current version and is still
pretty simple.
Lib/gzip.py