mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Oops, missed mode parameter to open().
This commit is contained in:
parent
9bb76d1b73
commit
fa1591c129
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue