[codegen] Switch from yaml.load to yaml.safe_load (#33275)

This commit is contained in:
Richard Belleville 2023-05-30 14:20:19 -07:00 committed by GitHub
parent b103379a43
commit ba3a5d762a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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']