Skip to content
Snippets Groups Projects
Commit 64fc6714 authored by Raphaël Gomès's avatar Raphaël Gomès
Browse files

Change `yaml.load` to `yaml.safe_load` and refactor into a util.

Both benchmarks/ and scmperf_lib/ make use of PyYAML to load yaml
files. This library has used an unsafe (i.e. can load yaml bombs, etc.)
loader by default since its inception and has been urging people to move
to `safe_load` instead.

We could have still used `load` by switching to SafeLoader, but the refactor
shrunk the code so much that it would not really be an improvement.
parent c21323ce
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment