Skip to content

Commit e787a38

Browse files
author
Altay Sansal
committed
yaml.safe_dump instead of yaml.dump
1 parent a98eb70 commit e787a38

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests-old/metaDataParse.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@
5959
match = re.match(regex, text2, re.MULTILINE)
6060
meta = match["meta"]
6161
config = yaml.safe_load(meta)
62-
yaml.dump(config, sys.stdout)
62+
yaml.safe_dump(config, sys.stdout)

tests-old/parseMdTags.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def readFile(filename: str) -> str:
2929
if yamlRaw:
3030
try:
3131
config = yaml.safe_load(yamlRaw)
32-
yaml.dump(config, sys.stdout)
32+
yaml.safe_dump(config, sys.stdout)
3333
except yaml.YAMLError as e:
3434
print(e)
3535
print()

0 commit comments

Comments
 (0)