alexferl / vyper

Python configuration with (more) fangs
MIT License
144 stars 21 forks source link

vyper.Vyper().read_in_config() triggers warning message yaml.load() in python 3.7 #21

Closed zedawg closed 5 years ago

zedawg commented 5 years ago

The warning message is:

/usr/local/lib/python3.7/site-packages/vyper/util.py:56: 
YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, 
as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  d.update(yaml.load(f))

The solution seems to be replacing yaml.load() with either yaml.safe_load() or yaml.full_load().

zedawg commented 5 years ago

more info