mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +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
|
@ -3,7 +3,7 @@
|
|||
This module has intimate knowledge of the format of .pyc files.
|
||||
"""
|
||||
|
||||
import __builtin__
|
||||
import builtins
|
||||
import imp
|
||||
import marshal
|
||||
import os
|
||||
|
@ -139,7 +139,7 @@ def compile(file, cfile=None, dfile=None, doraise=False):
|
|||
if codestring and codestring[-1] != '\n':
|
||||
codestring = codestring + '\n'
|
||||
try:
|
||||
codeobject = __builtin__.compile(codestring, dfile or file,'exec')
|
||||
codeobject = builtins.compile(codestring, dfile or file,'exec')
|
||||
except Exception as err:
|
||||
py_exc = PyCompileError(err.__class__, err, dfile or file)
|
||||
if doraise:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue