mirror of
https://github.com/python/cpython.git
synced 2025-11-08 01:21:42 +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
|
|
@ -75,7 +75,7 @@
|
|||
"""
|
||||
|
||||
# From here on it's basically all boiler plate...
|
||||
execfile(string.lower(MODPREFIX) + 'typetest.py')
|
||||
exec(open(string.lower(MODPREFIX) + 'typetest.py').read())
|
||||
|
||||
# Create the generator groups and link them
|
||||
module = MacModule(MODNAME, MODPREFIX, includestuff, finalstuff, initstuff)
|
||||
|
|
@ -89,7 +89,7 @@
|
|||
# Create and populate the lists
|
||||
functions = []
|
||||
##methods = []
|
||||
execfile(INPUTFILE)
|
||||
exec(open(INPUTFILE).read())
|
||||
|
||||
# add the populated lists to the generator groups
|
||||
# (in a different wordl the scan program would generate this)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue