mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Kill execfile(), use exec() instead
This commit is contained in:
parent
41eaedd361
commit
016880229a
98 changed files with 179 additions and 341 deletions
|
|
@ -507,8 +507,8 @@ Method = OSErrWeakLinkMethodGenerator
|
|||
# Create and populate the lists
|
||||
functions = []
|
||||
methods = []
|
||||
execfile(INPUTFILE)
|
||||
execfile('ctledit.py')
|
||||
exec(open(INPUTFILE).read())
|
||||
exec(open('ctledit.py').read())
|
||||
|
||||
# add the populated lists to the generator groups
|
||||
for f in functions: module.add(f)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue