diff options
Diffstat (limited to 'Lib/aifc.py')
-rw-r--r-- | Lib/aifc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/aifc.py b/Lib/aifc.py index a9e6f85..22bff01 100644 --- a/Lib/aifc.py +++ b/Lib/aifc.py @@ -413,7 +413,7 @@ class Aifc_read: def __init__(self, f): if type(f) == type(''): - f = __builtin__.open(f, 'r') + f = __builtin__.open(f, 'rb') # else, assume it is an open file object already self.initfp(f) @@ -638,7 +638,7 @@ class Aifc_write: def __init__(self, f): if type(f) == type(''): filename = f - f = __builtin__.open(f, 'w') + f = __builtin__.open(f, 'wb') else: # else, assume it is an open file object already filename = '???' |