mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Use __builtin__ instead of builtin
This commit is contained in:
parent
ffe9490d79
commit
3db6ebcc3f
2 changed files with 7 additions and 7 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue