-
Notifications
You must be signed in to change notification settings - Fork 518
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make load safe_load #5
Comments
Can't it just be an option. |
|
PyCon US 2015, Starring @tveastman, around the 7:00 mark https://www.youtube.com/watch?v=kjZHjvrAS74 |
Please parse the following YAML file for me and let me know if you think it's overstated.
|
Hey guys, I just spend yesterday evening with fixing the use of the dangerous |
Having also just opened a PR on a project that was unwittingly using I agree with making |
You might also be interested in the actively maintained fork ruamel.yaml or even strictyaml. Both of these libraries have handled this issue already. |
@sigmavirus24 Would you accept a patch that implemented this, or is there something more that'd need to happen to make this possible? I'm happy to write a patch. |
Change yaml.load/yaml.dump to be yaml.safe_load/yaml.safe_dump, introduced yaml.danger_dump/yaml.danger_load, and the same for various other classes. (python2 only at this moment) Refs yaml#5
Change yaml.load/yaml.dump to be yaml.safe_load/yaml.safe_dump, introduced yaml.danger_dump/yaml.danger_load, and the same for various other classes. (python2 only at this moment) Refs #5
yaml.load
default to safeyaml.dangerous_load
to replaceyaml.load
The text was updated successfully, but these errors were encountered: