mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +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
|
|
@ -153,8 +153,8 @@ class Au_read:
|
|||
|
||||
def __init__(self, f):
|
||||
if type(f) == type(''):
|
||||
import __builtin__
|
||||
f = __builtin__.open(f, 'rb')
|
||||
import builtins
|
||||
f = builtins.open(f, 'rb')
|
||||
self.initfp(f)
|
||||
|
||||
def __del__(self):
|
||||
|
|
@ -282,8 +282,8 @@ class Au_write:
|
|||
|
||||
def __init__(self, f):
|
||||
if type(f) == type(''):
|
||||
import __builtin__
|
||||
f = __builtin__.open(f, 'wb')
|
||||
import builtins
|
||||
f = builtins.open(f, 'wb')
|
||||
self.initfp(f)
|
||||
|
||||
def __del__(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue