noahmorrison / chevron

A Python implementation of mustache
MIT License
480 stars 52 forks source link

Python 3.8 -- YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated #78

Closed Denubis closed 3 years ago

Denubis commented 3 years ago

Is a warning showing on run when I run this via python 3.8.1

mardub1635 commented 3 years ago

Yes. same problem with python 3.7. The problem is located in main.py, l.23: data = json.load(data_file) One can solve it by replacing l.23 by this line: data = json.safe_load(data_file)

Details: To understand this issue have a look at the import line 7 in main.py: import yaml as json and have a look at this documentation: https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation