mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
#1535: rename __builtin__ module to builtins.
This commit is contained in:
parent
87f9c53937
commit
1a3284ed69
70 changed files with 246 additions and 247 deletions
|
@ -71,7 +71,7 @@ The close() method is called automatically when the class instance
|
|||
is destroyed.
|
||||
"""
|
||||
|
||||
import __builtin__
|
||||
import builtins
|
||||
|
||||
__all__ = ["open", "openfp", "Error"]
|
||||
|
||||
|
@ -156,7 +156,7 @@ class Wave_read:
|
|||
def __init__(self, f):
|
||||
self._i_opened_the_file = None
|
||||
if isinstance(f, str):
|
||||
f = __builtin__.open(f, 'rb')
|
||||
f = builtins.open(f, 'rb')
|
||||
self._i_opened_the_file = f
|
||||
# else, assume it is an open file object already
|
||||
try:
|
||||
|
@ -300,7 +300,7 @@ class Wave_write:
|
|||
def __init__(self, f):
|
||||
self._i_opened_the_file = None
|
||||
if isinstance(f, str):
|
||||
f = __builtin__.open(f, 'wb')
|
||||
f = builtins.open(f, 'wb')
|
||||
self._i_opened_the_file = f
|
||||
try:
|
||||
self.initfp(f)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue