Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@phue
Copy link
Member

@phue phue commented Apr 23, 2019

Since PyYAML 5.1, a warning is thrown when yaml.load() is called without a loader argument.
More info:
https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation

Many thanks to contributing to nf-core/tools!

Please fill in the appropriate checklist below (delete whatever is not relevant). These are the most common things requested on pull requests (PRs).

PR checklist

  • This comment contains a description of changes (with reason)
  • CHANGELOG.md is updated

Learn more about contributing: https://github.com/nf-core/tools/tree/master/.github/CONTRIBUTING.md

Since PyYAML 5.1, a warning is thrown when yaml.load() is called without a loader argument.
More info:
https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation
@drpatelh
Copy link
Member

Thanks for fixing this @phue ! Was very annoying.

Travis failing because CHANGELOG needs to be updated.

@phue
Copy link
Member Author

phue commented Apr 23, 2019

I also missed some yaml.load() statements in the tests. Will fix later 👍

@phue
Copy link
Member Author

phue commented Apr 23, 2019

Ok done.
python2 test is failing. I don't understand why 🤷‍♂️

@phue phue requested a review from drpatelh April 25, 2019 21:44
@apeltzer
Copy link
Member

Maybe something that @sven1103 knows most about as one of our python gurus ;-)

@apeltzer apeltzer requested a review from sven1103 April 27, 2019 10:07
@phue
Copy link
Member Author

phue commented Apr 28, 2019

Using yaml.safe_load() seems to fix the issue with python2. This is good to go.

@phue phue removed request for drpatelh and sven1103 April 28, 2019 18:02
@phue phue merged commit c0b7783 into dev Apr 28, 2019
@phue phue deleted the phue-yaml_loader_warning branch April 28, 2019 18:04
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.

4 participants