-
Notifications
You must be signed in to change notification settings - Fork 84
Fix yaml deprecation warning #1099
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
Conversation
gnocchi/gendoc.py
Outdated
@@ -194,7 +194,7 @@ def setup(app): | |||
|
|||
# TODO(jd) Do not hardcode doc/source | |||
with open("doc/source/rest.yaml") as f: | |||
scenarios = ScenarioList(yaml.load(f)) | |||
scenarios = ScenarioList(yaml.load(f), Loader=yaml.FullLoader) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
syntax error I think
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
embarrassing. Yes, of course!
YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
Thank you for looking at this Julien! |
#1097 also contains a commit to pin chardet<4, which seems to be necessary here as well? Let's see if the other patch passes. |
It seems pinning chardet is necessary here for the time being. @jd may I ask for a review again? |
@Mergifyio refresh |
Command
|
Thank you. |
@Mergifyio backport-to-4.3 |
Command
|
@Mergifyio backport stable/4.3 |
Command
|
YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated,
as the default Loader is unsafe. Please read https://msg.pyyaml.org/load
for full details.