Skip to content

Commit 202f653

Browse files
JustinRamraj Bishnoie
authored andcommitted
Use yaml.safe_dump just to be safe
1 parent 9a52095 commit 202f653

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/formats/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def _format_yaml_field(self, field_name: str, value: str) -> str:
124124
Properly formatted YAML string, or empty string if value is empty
125125
"""
126126
if value and value.strip():
127-
yaml_dump = yaml.dump(
127+
yaml_dump = yaml.safe_dump(
128128
{field_name: value},
129129
default_flow_style=False,
130130
allow_unicode=True,

0 commit comments

Comments
 (0)