mirror of https://github.com/python/cpython.git
* aifc.py (Aifc_write): fix bogus reference to filename
This commit is contained in:
parent
7bc817d5ba
commit
6ed9df2641
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue