Commit d2632eda authored by Fred Drake's avatar Fred Drake

Oops, missed mode parameter to open().

parent 218b4117
......@@ -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