Skip to content

Commit bd292a4

Browse files
committed
Use yaml.safe_load
yaml.load is deprecated from PyYAML 5.1: https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation
1 parent f5819c9 commit bd292a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

article.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def __init__(self, data):
167167

168168

169169
def parse(self, data):
170-
document = yaml.load(data)
170+
document = yaml.safe_load(data)
171171

172172
self.title = document.get("title", "")
173173
self.abstract = document.get("abstract","") or ""

0 commit comments

Comments
 (0)