summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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: