#1535: rename __builtin__ module to builtins.

This commit is contained in:
Georg Brandl 2007-12-02 09:40:06 +00:00
parent 87f9c53937
commit 1a3284ed69
70 changed files with 246 additions and 247 deletions

View file

@ -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)