diff options
author | Fred Drake <fdrake@acm.org> | 1999-04-05 18:37:59 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1999-04-05 18:37:59 (GMT) |
commit | fa1591c1299dcae295e1b11301e81e8b45c79dd3 (patch) | |
tree | 9989f62cc8deafab4e669dba5f8cdb347795a807 /Lib/gzip.py | |
parent | 9bb76d1b73d4498d87fbe75f23da466c1cb80e98 (diff) | |
download | cpython-fa1591c1299dcae295e1b11301e81e8b45c79dd3.zip cpython-fa1591c1299dcae295e1b11301e81e8b45c79dd3.tar.gz cpython-fa1591c1299dcae295e1b11301e81e8b45c79dd3.tar.bz2 |
Oops, missed mode parameter to open().
Diffstat (limited to 'Lib/gzip.py')
-rw-r--r-- | Lib/gzip.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/gzip.py b/Lib/gzip.py index 793bf5c..9efeaf0 100644 --- a/Lib/gzip.py +++ b/Lib/gzip.py @@ -20,7 +20,7 @@ def write32(output, value): def read32(input): return struct.unpack("<l", input.read(4))[0] -def open(filename, mode="r", compresslevel=9): +def open(filename, mode="rb", compresslevel=9): return GzipFile(filename, mode, compresslevel) class GzipFile: |