vyper.Vyper().read_in_config() triggers warning message yaml.load() in python 3.7
jimtang2 opened this issue · 1 comments
jimtang2 commented
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()
.