diff --git a/tests/run_yaml.py b/tests/run_yaml.py index c073778..e5aaa6c 100644 --- a/tests/run_yaml.py +++ b/tests/run_yaml.py @@ -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] diff --git a/{{cookiecutter.repo_name}}/devtools/scripts/create_conda_env.py b/{{cookiecutter.repo_name}}/devtools/scripts/create_conda_env.py index b51adc8..9ece84a 100644 --- a/{{cookiecutter.repo_name}}/devtools/scripts/create_conda_env.py +++ b/{{cookiecutter.repo_name}}/devtools/scripts/create_conda_env.py @@ -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