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

Fix yaml deprecation warning #1099

Merged
merged 2 commits into from
Dec 14, 2020
Merged

Fix yaml deprecation warning #1099

merged 2 commits into from
Dec 14, 2020

Conversation

mrunge
Copy link
Contributor

@mrunge mrunge commented Dec 11, 2020

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

@@ -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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

syntax error I think

Copy link
Contributor Author

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.
@mrunge
Copy link
Contributor Author

mrunge commented Dec 11, 2020

Thank you for looking at this Julien!

@mrunge
Copy link
Contributor Author

mrunge commented Dec 11, 2020

#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.

@mrunge
Copy link
Contributor Author

mrunge commented Dec 14, 2020

It seems pinning chardet is necessary here for the time being.

@jd may I ask for a review again?

@jd
Copy link
Member

jd commented Dec 14, 2020

@Mergifyio refresh

@mergify
Copy link
Contributor

mergify bot commented Dec 14, 2020

Command refresh: success

Pull request refreshed

@mergify mergify bot merged commit e19fda5 into gnocchixyz:master Dec 14, 2020
@mrunge
Copy link
Contributor Author

mrunge commented Dec 14, 2020

Thank you.

@mrunge mrunge deleted the yaml branch December 14, 2020 15:56
@tobias-urdin
Copy link
Contributor

@Mergifyio backport-to-4.3

@mergify
Copy link
Contributor

mergify bot commented Dec 16, 2020

Command backport -to-4.3: failure

No backport have been created

  • Backport to branch -to-4.3 failed: Branch not found

@tobias-urdin
Copy link
Contributor

@Mergifyio backport stable/4.3

@mergify
Copy link
Contributor

mergify bot commented Dec 16, 2020

Command backport stable/4.3: success

Backports have been created

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants