* aifc.py (Aifc_write): fix bogus reference to filename

This commit is contained in:
Guido van Rossum 1993-12-17 16:43:43 +00:00
parent 7bc817d5ba
commit 6ed9df2641
1 changed files with 3 additions and 0 deletions

View File

@ -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':