[codegen] Switch from yaml.load to yaml.safe_load (#33275)
This commit is contained in:
parent
b103379a43
commit
ba3a5d762a
|
|
@ -29,7 +29,7 @@ import sys
|
|||
import yaml
|
||||
|
||||
with open('src/core/lib/config/config_vars.yaml') as f:
|
||||
attrs = yaml.load(f.read(), Loader=yaml.FullLoader)
|
||||
attrs = yaml.safe_load(f.read(), Loader=yaml.FullLoader)
|
||||
|
||||
error = False
|
||||
today = datetime.date.today()
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ import sys
|
|||
import yaml
|
||||
|
||||
with open('src/core/lib/debug/stats_data.yaml') as f:
|
||||
attrs = yaml.load(f.read(), Loader=yaml.Loader)
|
||||
attrs = yaml.safe_load(f.read(), Loader=yaml.Loader)
|
||||
|
||||
REQUIRED_FIELDS = ['name', 'doc']
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue