Skip to content
  • Raphaël Gomès's avatar
    Change `yaml.load` to `yaml.safe_load` and refactor into a util. · 64fc6714b31e
    Raphaël Gomès authored
    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.
    64fc6714b31e