git-lint icon indicating copy to clipboard operation
git-lint copied to clipboard

Silence yaml load warning

Open pfhayes opened this issue 6 years ago • 1 comments

/home/venv/lib/python3.6/site-packages/gitlint/__init__.py:105: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  yaml_config = yaml.load(content)

We could preserve existing behaviour with yaml.full_load(content) or yaml.load(content, Loader=yaml.FullLoader) - that's up to the maintainer. But it seems to me that safe_load is most appropriate in this case.

https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation

pfhayes avatar Apr 10 '19 00:04 pfhayes

I wish this merge request was accepted

jmolloy19 avatar Dec 03 '19 15:12 jmolloy19