commit | b16a3b84509f6f66f60bb3c7521b2bee70ac1b1c | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Tue Jan 27 19:29:45 1998 +0000 |
committer | Guido van Rossum <guido@python.org> | Tue Jan 27 19:29:45 1998 +0000 |
tree | 4db1fab31922818ce355b65b01cdbd80a42e1d35 | |
parent | 7570669a0838e5b1ae868774f35105107fa1992b [diff] |
(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.