witten
/
luminotes
Archived
1
0
Fork 0

Changing default file mode from just "b" to "rb", since Python complains otherwise.

This commit is contained in:
Dan Helfman 2008-08-25 23:47:25 -07:00
parent 7a65670c45
commit 9e1ae2abb6
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ class Upload_file( object ):
def open_file( file_id, mode = None ): def open_file( file_id, mode = None ):
# force binary mode # force binary mode
if not mode: if not mode:
mode = "b" mode = "rb"
elif "b" not in mode: elif "b" not in mode:
mode = "%sb" % mode mode = "%sb" % mode