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 yaml loader #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bernt-matthias
Copy link
Contributor

Since PyYAML 5.1 loading a yaml file without specifying a loader raises
a deprecation note:

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

see also https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation

so I suggest to specify the FullLoader (we could also go for another one).

Since PyYAML 5.1 loading a yaml file without specifying a loader raises
a deprecation note:

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

see also https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation

so I suggest to specify the FullLoader (we could also go for another one).
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.

1 participant