diff --git a/tools/changelog/check_changelog.py b/tools/changelog/check_changelog.py index aee1d5dc77c6..9acea9398ebd 100644 --- a/tools/changelog/check_changelog.py +++ b/tools/changelog/check_changelog.py @@ -11,7 +11,7 @@ import os import re from pathlib import Path -from ruamel import yaml +from ruamel.yaml import YAML from github import Github import json @@ -88,7 +88,8 @@ print("There are spaces or tabs instead of author username") with open(Path.cwd().joinpath("tags.yml")) as file: - tags = yaml.safe_load(file) + yaml = YAML(type='safe',pure=True) + tags = yaml.load(file) write_cl['changes'] = []