mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38: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
|
@ -41,7 +41,7 @@ if os.path.exists(__file__):
|
|||
#
|
||||
sys.argv[0] = __file__
|
||||
del argvemulator, os, sys, _dir
|
||||
execfile(__file__)
|
||||
exec(open(__file__).read())
|
||||
else:
|
||||
__file__ = os.path.join(_dir, '__main__.pyc')
|
||||
if os.path.exists(__file__):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue