diff --git a/tools/changelog/generate_cl.py b/tools/changelog/generate_cl.py index e080f37b2ae..b76f9a50913 100644 --- a/tools/changelog/generate_cl.py +++ b/tools/changelog/generate_cl.py @@ -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'] = [] @@ -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)