]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
* aifc.py (Aifc_write): fix bogus reference to filename
authorGuido van Rossum <guido@python.org>
Fri, 17 Dec 1993 16:43:43 +0000 (16:43 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 17 Dec 1993 16:43:43 +0000 (16:43 +0000)
Lib/aifc.py

index a603314697a32af703bdc6079fe673bdc900c6cf..e06b7766ef4d2635cef0737107789a2f1bdd0a1c 100644 (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':