From 3db6ebcc3fe62d19ae0f0d3b929e17e9ca4edce3 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 28 Jan 1994 09:59:35 +0000 Subject: Use __builtin__ instead of builtin --- Lib/aifc.py | 6 +++--- Lib/sunau.py | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Lib/aifc.py b/Lib/aifc.py index 653dac9..aa1e56c 100644 --- a/Lib/aifc.py +++ b/Lib/aifc.py @@ -133,7 +133,7 @@ # changed by calling aiff() or aifc() before the first writeframes or # writeframesraw. -import builtin +import __builtin__ try: import CL except ImportError: @@ -410,7 +410,7 @@ class Aifc_read: def __init__(self, f): if type(f) == type(''): - f = builtin.open(f, 'r') + f = __builtin__.open(f, 'r') # else, assume it is an open file object already self.initfp(f) @@ -616,7 +616,7 @@ class Aifc_write: def __init__(self, f): if type(f) == type(''): filename = f - f = builtin.open(f, 'w') + f = __builtin__.open(f, 'w') else: # else, assume it is an open file object already filename = '???' diff --git a/Lib/sunau.py b/Lib/sunau.py index 17fa60d..631d9e8 100644 --- a/Lib/sunau.py +++ b/Lib/sunau.py @@ -153,8 +153,8 @@ class Au_read: def __init__(self, f): if type(f) == type(''): - import builtin - f = builtin.open(f, 'r') + import __builtin__ + f = __builtin__.open(f, 'r') self.initfp(f) def __del__(self): @@ -284,8 +284,8 @@ class Au_write: def __init__(self, f): if type(f) == type(''): - import builtin - f = builtin.open(f, 'w') + import __builtin__ + f = __builtin__.open(f, 'w') self.initfp(f) def __del__(self): -- cgit v0.12