djangae
djangae copied to clipboard
Replace yaml.load with yaml.full_load
Fixes #[include a number of issue this PR is fixing].
Summary of changes proposed in this Pull Request:
- yaml.load is deprecated. This PR replaces it with yaml.full_load
PR checklist:
- [N/A] Updated relevant documentation
- [N/A] Updated CHANGELOG.md
- [N/A] Added tests for my change
Thanks for submitting this.
All the tests on this fail with AttributeError: 'module' object has no attribute 'full_load'
. Or at least, they do on Travis. Do the tests pass for you locally?
If so then maybe the setup on Travis is using a different version of yaml
to the one that gets used when running the tests locally.
Fixes #1169.
If there is no need to use the full set of YAML features, we should use yaml.safe_load()
not yaml.full_load()
.
Sorry for the delay! Switching it to safe_load
worked and did not require a different version of pyyaml.
Potentially related: https://github.com/potatolondon/djangae/pull/1163#discussion_r298198217