summaryrefslogtreecommitdiff
path: root/Lib/wave.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-12-02 09:40:06 +0000
committerGeorg Brandl <georg@python.org>2007-12-02 09:40:06 +0000
commit7d4a05a4ebffb688137ca5b5a92825a756927e7e (patch)
tree012f200cbef14b454fbce4325f11ab7c6b08f4f4 /Lib/wave.py
parent76c3522261540b3660a5172f01c99d29db08c579 (diff)
downloadcpython-7d4a05a4ebffb688137ca5b5a92825a756927e7e.tar.gz
#1535: rename __builtin__ module to builtins.
Diffstat (limited to 'Lib/wave.py')
-rw-r--r--Lib/wave.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/wave.py b/Lib/wave.py
index eda3697144..8455522f8f 100644
--- a/Lib/wave.py
+++ b/Lib/wave.py
@@ -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)