Skip to content

Commit

Permalink
Merge pull request #14 from ev-br/yaml_reader
Browse files Browse the repository at this point in the history
MAINT: add explicit yaml.Loader
  • Loading branch information
rougier authored May 15, 2020
2 parents 462b7de + 10496d5 commit 460340e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion article.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def __init__(self, data):


def parse(self, data):
document = yaml.load(data)
document = yaml.load(data, Loader=yaml.SafeLoader)

self.title = document.get("title", "")
self.abstract = document.get("abstract","") or ""
Expand Down

0 comments on commit 460340e

Please sign in to comment.