Skip to content

Commit

Permalink
Switch to yaml.BaseLoader
Browse files Browse the repository at this point in the history
Switch to yaml.BaseLoader to prevent automatic type conversions.
  • Loading branch information
MLBZ521 committed Oct 30, 2023
1 parent ca1b7ad commit ebb6ca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Code/autopkglib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def recipe_from_file(filename):
try:
# try to read it as yaml
with open(filename, "rb") as f:
recipe_dict = yaml.load(f, Loader=yaml.FullLoader)
recipe_dict = yaml.load(f, Loader=yaml.BaseLoader)
return recipe_dict
except Exception as err:
log_err(f"WARNING: yaml error for {filename}: {err}")
Expand Down

0 comments on commit ebb6ca3

Please sign in to comment.