Skip to content

Commit

Permalink
Merge pull request #168 from evilsetg/fix-yaml
Browse files Browse the repository at this point in the history
replace yaml.load calls with yaml.safe_load
  • Loading branch information
Lnaden authored Nov 14, 2022
2 parents 88f031f + 9356f6b commit 401afa9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/run_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def parse_yaml(filename, key):
"""

with open(filename, "r") as infile:
ret = yaml.load(infile)
ret = yaml.safe_load(infile)

return ret[key]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# YAML imports
try:
import yaml # PyYAML
loader = yaml.load
loader = yaml.safe_load
except ImportError:
try:
import ruamel_yaml as yaml # Ruamel YAML
Expand Down

0 comments on commit 401afa9

Please sign in to comment.