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.FullLoader in yaml.load_all statement #75

Closed
wants to merge 1 commit into from

Conversation

madmatt112
Copy link

@madmatt112 madmatt112 commented Nov 20, 2019

Currently, running kube-shell shows a PyYAML Loader deprecation warning because the yaml Loader type isn't specified in two "yaml.load_all" calls.
As per PyYAML documentation, after showing the warning, PyYAML defaults to using the FullLoader.
This change explicitly sets the FullLoader, which will suppress the error in a non-future-breaking way - that is, if a future PyYAML version exits instead of warning & defaulting when a Loader type is not specified.

Fixes #71
Fixes #73

Signed off by: Matthew Field fieldm58@gmail.com

Signed off by: Matthew Field <fieldm58@gmail.com>
@madmatt112
Copy link
Author

Is this project still maintained?

@madmatt112
Copy link
Author

Abandoning this PR. Project doesn't seem active.

@madmatt112 madmatt112 closed this Oct 13, 2022
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.

on startup on RHEL 7.6 notebook get load errors Python 3.7 support (fix deprecated yaml call)
1 participant