Kaydet (Commit) 6ed9df26 authored tarafından Guido van Rossum's avatar Guido van Rossum

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

üst 7bc817d5
...@@ -637,7 +637,10 @@ class Aifc_write: ...@@ -637,7 +637,10 @@ class Aifc_write:
def __init__(self, f): def __init__(self, f):
if type(f) == type(''): if type(f) == type(''):
filename = f
f = builtin.open(f, 'w') f = builtin.open(f, 'w')
else:
filename = '???'
# else, assume it is an open file object already # else, assume it is an open file object already
self.initfp(f) self.initfp(f)
if filename[-5:] == '.aiff': 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