mirror of https://github.com/python/cpython.git
Use __builtin__ instead of builtin
This commit is contained in:
parent
ffe9490d79
commit
3db6ebcc3f
|
@ -133,7 +133,7 @@
|
||||||
# changed by calling aiff() or aifc() before the first writeframes or
|
# changed by calling aiff() or aifc() before the first writeframes or
|
||||||
# writeframesraw.
|
# writeframesraw.
|
||||||
|
|
||||||
import builtin
|
import __builtin__
|
||||||
try:
|
try:
|
||||||
import CL
|
import CL
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
@ -410,7 +410,7 @@ def initfp(self, file):
|
||||||
|
|
||||||
def __init__(self, f):
|
def __init__(self, f):
|
||||||
if type(f) == type(''):
|
if type(f) == type(''):
|
||||||
f = builtin.open(f, 'r')
|
f = __builtin__.open(f, 'r')
|
||||||
# else, assume it is an open file object already
|
# else, assume it is an open file object already
|
||||||
self.initfp(f)
|
self.initfp(f)
|
||||||
|
|
||||||
|
@ -616,7 +616,7 @@ class Aifc_write:
|
||||||
def __init__(self, f):
|
def __init__(self, f):
|
||||||
if type(f) == type(''):
|
if type(f) == type(''):
|
||||||
filename = f
|
filename = f
|
||||||
f = builtin.open(f, 'w')
|
f = __builtin__.open(f, 'w')
|
||||||
else:
|
else:
|
||||||
# else, assume it is an open file object already
|
# else, assume it is an open file object already
|
||||||
filename = '???'
|
filename = '???'
|
||||||
|
|
|
@ -153,8 +153,8 @@ class Au_read:
|
||||||
|
|
||||||
def __init__(self, f):
|
def __init__(self, f):
|
||||||
if type(f) == type(''):
|
if type(f) == type(''):
|
||||||
import builtin
|
import __builtin__
|
||||||
f = builtin.open(f, 'r')
|
f = __builtin__.open(f, 'r')
|
||||||
self.initfp(f)
|
self.initfp(f)
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
|
@ -284,8 +284,8 @@ class Au_write:
|
||||||
|
|
||||||
def __init__(self, f):
|
def __init__(self, f):
|
||||||
if type(f) == type(''):
|
if type(f) == type(''):
|
||||||
import builtin
|
import __builtin__
|
||||||
f = builtin.open(f, 'w')
|
f = __builtin__.open(f, 'w')
|
||||||
self.initfp(f)
|
self.initfp(f)
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
|
|
Loading…
Reference in New Issue