mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +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
|
@ -7,7 +7,7 @@ Written by Marc-Andre Lemburg (mal@lemburg.com).
|
|||
|
||||
"""#"
|
||||
|
||||
import __builtin__, sys
|
||||
import builtins, sys
|
||||
|
||||
### Registry and builtin stateless codec functions
|
||||
|
||||
|
@ -858,7 +858,7 @@ def open(filename, mode='rb', encoding=None, errors='strict', buffering=1):
|
|||
'b' not in mode:
|
||||
# Force opening of the file in binary mode
|
||||
mode = mode + 'b'
|
||||
file = __builtin__.open(filename, mode, buffering)
|
||||
file = builtins.open(filename, mode, buffering)
|
||||
if encoding is None:
|
||||
return file
|
||||
info = lookup(encoding)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue