mirror of
https://github.com/python/cpython.git
synced 2025-08-29 05:05:03 +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
|
@ -63,7 +63,7 @@ def runtest(hier, code):
|
|||
sys.path.insert(0, root)
|
||||
if verbose: print("sys.path =", sys.path)
|
||||
try:
|
||||
execfile(fname, globals(), {})
|
||||
exec(open(fname).read(), globals(), {})
|
||||
except:
|
||||
traceback.print_exc(file=sys.stdout)
|
||||
finally:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue