diff --git a/tools/changelog/generate_cl.py b/tools/changelog/generate_cl.py index 7259467f007d..d73d2034fe8a 100644 --- a/tools/changelog/generate_cl.py +++ b/tools/changelog/generate_cl.py @@ -27,7 +27,7 @@ from pathlib import Path from github import Github, InputGitAuthor -from ruamel import yaml +from ruamel import YAML CL_BODY = re.compile(r":cl:(.+)?\r\n((.|\n|\r)+?)\r\n\/:cl:", re.MULTILINE) CL_SPLIT = re.compile(r"(^\w+):\s+(\w.+)", re.MULTILINE) @@ -71,6 +71,8 @@ write_cl["delete-after"] = True +yaml = YAML(typ='safe', pure=True) + with open(Path.cwd().joinpath("tools/changelog/tags.yml")) as file: tags = yaml.safe_load(file)