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

Specify a loader when loading YAML #10

Merged
merged 1 commit into from
Jun 27, 2020
Merged

Conversation

ColinOrr
Copy link
Contributor

This addresses the following deprecation warning when loading the YAML:

YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the
default Loader is unsafe. Please read https://msg.pyyaml.org/load for full
details.

This change uses the yaml.FullLoader which avoids arbitrary code execution and is the default loader called by yaml.load(input).

This addresses the following deprecation warning when loading the YAML:

```
YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the
default Loader is unsafe. Please read https://msg.pyyaml.org/load for full
details.
```

This change uses the `yaml.FullLoader` which avoids arbitrary code execution and
is the default loader called by `yaml.load(input)`.
@jonbeebe jonbeebe merged commit accd644 into jonbeebe:master Jun 27, 2020
@jonbeebe
Copy link
Owner

Thanks for the contribution! Your changes have been merged

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