automated change using python-modernize: replace execfile
This commit is contained in:
parent
521398d5e7
commit
b52b7b1f93
1 changed files with 1 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ class Config(dict):
|
||||||
d = imp.new_module('config')
|
d = imp.new_module('config')
|
||||||
d.__file__ = filename
|
d.__file__ = filename
|
||||||
try:
|
try:
|
||||||
execfile(filename, d.__dict__)
|
exec(compile(open(filename).read(), filename, 'exec'), d.__dict__)
|
||||||
except IOError, e:
|
except IOError, e:
|
||||||
if silent and e.errno in (errno.ENOENT, errno.EISDIR):
|
if silent and e.errno in (errno.ENOENT, errno.EISDIR):
|
||||||
return False
|
return False
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue