mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +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
|
@ -26,7 +26,7 @@ def check1dir(dummy, dir, files):
|
|||
if CHECKNAME in files:
|
||||
fullname = os.path.join(dir, CHECKNAME)
|
||||
try:
|
||||
execfile(fullname)
|
||||
exec(open(fullname).read())
|
||||
except:
|
||||
print('** Exception in', fullname)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue