lukasgeiter / mkdocs-awesome-pages-plugin

An MkDocs plugin that simplifies configuring page titles and their order
MIT License
453 stars 35 forks source link

calling yaml.load() without Loader=... is deprecated #8

Closed mathias-luedtke closed 5 years ago

mathias-luedtke commented 5 years ago

I get this notification now:

lib/python3.6/site-packages/mkdocs_awesome_pages_plugin/meta.py:39:
YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. 
Please read https://msg.pyyaml.org/load for full details.
  contents = yaml.load(file) or {}

According the wiki. there are two options to migrate:

  1. use safe_load instead (backwards-compatible)
  2. pass Loader=yaml.FullLoader to load

I'd guess option 1 should be fine. I can create a PR is requested.