File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 133133# changed by calling aiff() or aifc() before the first writeframes or
134134# writeframesraw.
135135
136- import builtin
136+ import __builtin__
137137try :
138138 import CL
139139except ImportError :
@@ -410,7 +410,7 @@ def initfp(self, file):
410410
411411 def __init__ (self , f ):
412412 if type (f ) == type ('' ):
413- f = builtin .open (f , 'r' )
413+ f = __builtin__ .open (f , 'r' )
414414 # else, assume it is an open file object already
415415 self .initfp (f )
416416
@@ -616,7 +616,7 @@ class Aifc_write:
616616 def __init__ (self , f ):
617617 if type (f ) == type ('' ):
618618 filename = f
619- f = builtin .open (f , 'w' )
619+ f = __builtin__ .open (f , 'w' )
620620 else :
621621 # else, assume it is an open file object already
622622 filename = '???'
Original file line number Diff line number Diff line change @@ -153,8 +153,8 @@ class Au_read:
153153
154154 def __init__ (self , f ):
155155 if type (f ) == type ('' ):
156- import builtin
157- f = builtin .open (f , 'r' )
156+ import __builtin__
157+ f = __builtin__ .open (f , 'r' )
158158 self .initfp (f )
159159
160160 def __del__ (self ):
@@ -284,8 +284,8 @@ class Au_write:
284284
285285 def __init__ (self , f ):
286286 if type (f ) == type ('' ):
287- import builtin
288- f = builtin .open (f , 'w' )
287+ import __builtin__
288+ f = __builtin__ .open (f , 'w' )
289289 self .initfp (f )
290290
291291 def __del__ (self ):
You can’t perform that action at this time.
0 commit comments