mirror of
https://github.com/python/cpython.git
synced 2025-10-27 08:46:53 +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
|
|
@ -128,7 +128,7 @@ OptRectPtr = OpaqueByValueType("Rect *", "OptRectPtr")
|
|||
UniChar = Type("UniChar", "h") # XXXX For now...
|
||||
# ADD object type here
|
||||
|
||||
execfile("mltetypetest.py")
|
||||
exec(open("mltetypetest.py").read())
|
||||
|
||||
# Our (opaque) objects
|
||||
|
||||
|
|
@ -166,7 +166,7 @@ TXNObject_methods = []
|
|||
TXNFontMenuObject_methods = []
|
||||
|
||||
# ADD _methods initializer here
|
||||
execfile(INPUTFILE)
|
||||
exec(open(INPUTFILE).read())
|
||||
|
||||
|
||||
# add the populated lists to the generator groups
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue