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