kerrickstaley / genanki

A Python 3 library for generating Anki decks
MIT License
1.99k stars 150 forks source link

Warning related to yaml.load call #31

Closed kerrickstaley closed 5 years ago

kerrickstaley commented 5 years ago

Getting this YAMLLoadWarning on newer versions of the yaml lib:

/home/kerrick/.local/lib/python3.7/site-packages/genanki-0.6.5-py3.7.egg/genanki/model.py:18: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  self.fields = yaml.load(fields)
/home/kerrick/.local/lib/python3.7/site-packages/genanki-0.6.5-py3.7.egg/genanki/model.py:24: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  self.templates = yaml.load(templates)
kerrickstaley commented 5 years ago

Fixed in https://github.com/kerrickstaley/genanki/pull/33