Skip to content
This repository has been archived by the owner on Jun 3, 2020. It is now read-only.

Specify yaml loader, to silence warning #83

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

robx
Copy link

@robx robx commented Oct 28, 2019

This avoids the following warning:

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

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

This avoids the following warning:

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

Compare https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant