diff --git a/tools/changelog/generate_cl.py b/tools/changelog/generate_cl.py index b4ef112a959..275447e122b 100755 --- a/tools/changelog/generate_cl.py +++ b/tools/changelog/generate_cl.py @@ -99,8 +99,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'] = [] @@ -112,7 +113,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)