summaryrefslogtreecommitdiffstats
path: root/Lib/gzip.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1999-04-05 18:37:59 (GMT)
committerFred Drake <fdrake@acm.org>1999-04-05 18:37:59 (GMT)
commitfa1591c1299dcae295e1b11301e81e8b45c79dd3 (patch)
tree9989f62cc8deafab4e669dba5f8cdb347795a807 /Lib/gzip.py
parent9bb76d1b73d4498d87fbe75f23da466c1cb80e98 (diff)
downloadcpython-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.py2
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: