Skip to content
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

Use PyYAML's safe_load instead of load #101

Merged
merged 3 commits into from Nov 25, 2021

Conversation

slohse
Copy link
Member

@slohse slohse commented Nov 25, 2021

PyYAML version 6.0 changed the load() function to require a second argument, a Loader. There are several different loaders, some of them having serious security implications. So to force devs to consciously make a choice of loader, they changed the signature of the load function.
Alternatively the safe_load function can be used, which is what I did.

@slohse slohse requested a review from matrulda November 25, 2021 13:35
@slohse slohse self-assigned this Nov 25, 2021
Copy link
Collaborator

@matrulda matrulda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! 👍

@matrulda matrulda merged commit e44042e into Molmed:master Nov 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants