summaryrefslogtreecommitdiffstats
path: root/Lib/aifc.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/aifc.py')
-rw-r--r--Lib/aifc.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/aifc.py b/Lib/aifc.py
index a603314..e06b776 100644
--- a/Lib/aifc.py
+++ b/Lib/aifc.py
@@ -637,7 +637,10 @@ class Aifc_write:
def __init__(self, f):
if type(f) == type(''):
+ filename = f
f = builtin.open(f, 'w')
+ else:
+ filename = '???'
# else, assume it is an open file object already
self.initfp(f)
if filename[-5:] == '.aiff':