This commit is contained in:
David Rose 2008-11-04 10:17:02 +00:00
parent d0324e3b60
commit 5f5dd02b30
1 changed files with 1 additions and 0 deletions

View File

@ -57,6 +57,7 @@ class file:
binary = False
if 'b' in mode:
# Strip 'b'. This means a binary file.
i = mode.index('b')
mode = mode[:i] + mode[i + 1:]
binary = True