summaryrefslogtreecommitdiffstats
path: root/Lib/aifc.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1993-12-17 16:43:43 (GMT)
committerGuido van Rossum <guido@python.org>1993-12-17 16:43:43 (GMT)
commit6ed9df264136007c654201ee58ca15f10124882a (patch)
tree8a69780f3b3f7f89acb57e6b49dc5d7b078825da /Lib/aifc.py
parent7bc817d5ba917528e8bd07ec461c635291e7b06a (diff)
downloadcpython-6ed9df264136007c654201ee58ca15f10124882a.zip
cpython-6ed9df264136007c654201ee58ca15f10124882a.tar.gz
cpython-6ed9df264136007c654201ee58ca15f10124882a.tar.bz2
* aifc.py (Aifc_write): fix bogus reference to filename
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':