nosec comment
This commit is contained in:
parent
c5ec5fa41f
commit
0320c04be2
@ -73,11 +73,8 @@ def from_file(file_path, silent=False):
|
||||
d.__file__ = file_path
|
||||
try:
|
||||
with open(file_path) as config_file:
|
||||
exec(
|
||||
compile(
|
||||
config_file.read(), file_path, "exec" # nosec: config file safe
|
||||
),
|
||||
d.__dict__,
|
||||
exec( # nosec: config file safe
|
||||
compile(config_file.read(), file_path, "exec"), d.__dict__
|
||||
)
|
||||
except IOError as e:
|
||||
if silent and e.errno in (errno.ENOENT, errno.EISDIR):
|
||||
|
Loading…
Reference in New Issue
Block a user