nosec comment

This commit is contained in:
Curtis Castrapel 2019-05-16 08:14:46 -07:00
parent c5ec5fa41f
commit 0320c04be2
1 changed files with 2 additions and 5 deletions

View File

@ -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):