Update YAML library use.
This commit is contained in:
parent
829c6fe32f
commit
de04cfccdf
|
@ -62,7 +62,7 @@ def extract_markdown_abstract(filename):
|
|||
yaml_block = ''
|
||||
elif state == 1:
|
||||
if line == '---\n':
|
||||
y = yaml.load(yaml_block)
|
||||
y = yaml.safe_load(yaml_block)
|
||||
if y is None:
|
||||
return None
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue