Commit 6ed9df26 authored by Guido van Rossum's avatar Guido van Rossum

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

parent 7bc817d5
......@@ -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':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment