s/yaml.load/yaml.safe_load/
This commit is contained in:
parent
dde0b579b2
commit
5e21f844a0
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ class Config(object):
|
||||||
|
|
||||||
config = {}
|
config = {}
|
||||||
with open(cfgfile, 'r') as fp:
|
with open(cfgfile, 'r') as fp:
|
||||||
file_config = yaml.load(fp)
|
file_config = yaml.safe_load(fp)
|
||||||
|
|
||||||
for section in file_config:
|
for section in file_config:
|
||||||
if section == 'include':
|
if section == 'include':
|
||||||
|
|
Loading…
Reference in a new issue