prologin / concours-site

Source code of the Prologin contest website
https://gitlab.com/prologin/concours/site
GNU General Public License v3.0
10 stars 6 forks source link

yaml: replace deprecated function #229

Closed Idotno-1 closed 4 years ago

Idotno-1 commented 5 years ago

Using the function full_load instead of the deprecated load.

fix: #228

seirl commented 4 years ago

Wait, why not safe_load?

Idotno-1 commented 4 years ago

Wait, why not safe_load?

The yaml file can be trusted so I didn't saw the point of using safe_load.

zopieux commented 4 years ago

The yaml file can be trusted so I didn't saw the point of using safe_load.

There are zero reasons to use full_load, it's only meant for very weird uses of yaml in which code execution would be allowed by design. We need and we want dumb yaml. Please use safe_load.