Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fa1591c

Browse files
committed
Oops, missed mode parameter to open().
1 parent 9bb76d1 commit fa1591c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/gzip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def write32(output, value):
2020
def read32(input):
2121
return struct.unpack("<l", input.read(4))[0]
2222

23-
def open(filename, mode="r", compresslevel=9):
23+
def open(filename, mode="rb", compresslevel=9):
2424
return GzipFile(filename, mode, compresslevel)
2525

2626
class GzipFile:

0 commit comments

Comments
 (0)