Skip to content

Commit

Permalink
Merge pull request #3485 from MistakeNot4892/yaml
Browse files Browse the repository at this point in the history
Updating yaml.safe_load() as indicated by CL fail.
  • Loading branch information
out-of-phaze authored Nov 5, 2023
2 parents d2ef0d8 + 1e5cc17 commit 2adf37e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/changelog/generate_cl.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@

write_cl['delete-after'] = True

yaml = yaml.YAML(typ='safe', pure=True)
with open(Path.cwd().joinpath("tools/changelog/tags.yml")) as file:
tags = yaml.safe_load(file)
tags = yaml.load(file)

write_cl['changes'] = []

Expand All @@ -87,7 +88,6 @@

if write_cl['changes']:
with io.StringIO() as cl_contents:
yaml = yaml.YAML()
yaml.indent(sequence=4, offset=2)
yaml.dump(write_cl, cl_contents)
cl_contents.seek(0)
Expand Down

0 comments on commit 2adf37e

Please sign in to comment.