From: Guido van Rossum Date: Fri, 17 Dec 1993 16:43:43 +0000 (+0000) Subject: * aifc.py (Aifc_write): fix bogus reference to filename X-Git-Tag: v1.0.1~116 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6ed9df264136007c654201ee58ca15f10124882a;p=thirdparty%2FPython%2Fcpython.git * aifc.py (Aifc_write): fix bogus reference to filename --- diff --git a/Lib/aifc.py b/Lib/aifc.py index a603314697a3..e06b7766ef4d 100644 --- a/Lib/aifc.py +++ b/Lib/aifc.py @@ -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':