mirror of
https://github.com/python/cpython.git
synced 2025-08-23 18:24:46 +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
|
@ -874,7 +874,7 @@ class Values:
|
|||
|
||||
def read_file(self, filename, mode="careful"):
|
||||
vars = {}
|
||||
execfile(filename, vars)
|
||||
exec(open(filename).read(), vars)
|
||||
self._update(vars, mode)
|
||||
|
||||
def ensure_value(self, attr, value):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue