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

PyYAML deprecation warning #34

Open
kmhsonnenkind opened this issue Apr 16, 2019 · 0 comments
Open

PyYAML deprecation warning #34

kmhsonnenkind opened this issue Apr 16, 2019 · 0 comments

Comments

@kmhsonnenkind
Copy link

The YAMLLoader's load(filename) method calls PyYAML's corresponding load() function without an explicit Loader class. This has been deprecated since PyYAML version 5.1 because of potential security issues and produces a warning (see also https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation).

As PyYAML implicitely uses the safe FullLoader implementation if the parameter is omitted, this can be passed to its load() function without changing the behaviour of flask fixtures while still getting rid of the warning.

kmhsonnenkind added a commit to kmhsonnenkind/Flask-Fixtures that referenced this issue Apr 16, 2019
kmhsonnenkind added a commit to kmhsonnenkind/Flask-Fixtures that referenced this issue Apr 16, 2019
This is necessary to avoid deprecation warning in PyYAML.

see also: croach#34

Signed-off-by: Martin Kloesch <[email protected]>
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

No branches or pull requests

1 participant