Kaydet (Commit) fa1591c1 authored tarafından Fred Drake's avatar Fred Drake

Oops, missed mode parameter to open().

üst 9bb76d1b
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment