Skip to content

Commit

Permalink
[codegen] Switch from yaml.load to yaml.safe_load (grpc#33275)
Browse files Browse the repository at this point in the history
  • Loading branch information
gnossen authored May 30, 2023
1 parent b103379 commit ba3a5d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/codegen/core/gen_config_vars.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
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()
Expand Down
2 changes: 1 addition & 1 deletion tools/codegen/core/gen_stats_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
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']

Expand Down

0 comments on commit ba3a5d7

Please sign in to comment.