Changing default file mode from just "b" to "rb", since Python complains otherwise.
This commit is contained in:
parent
7a65670c45
commit
9e1ae2abb6
|
@ -134,7 +134,7 @@ class Upload_file( object ):
|
|||
def open_file( file_id, mode = None ):
|
||||
# force binary mode
|
||||
if not mode:
|
||||
mode = "b"
|
||||
mode = "rb"
|
||||
elif "b" not in mode:
|
||||
mode = "%sb" % mode
|
||||
|
||||
|
|
Reference in New Issue