From d5ac32b6f2ffccdf7601b59ddb81e3a4c901e782 Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Fri, 24 Feb 2023 13:59:32 +0000 Subject: [PATCH] Update replacements now that the release notes are in Markdown Signed-off-by: Pedro Algarvio --- tools/changelog.py | 51 +--------------------------------------------- 1 file changed, 1 insertion(+), 50 deletions(-) diff --git a/tools/changelog.py b/tools/changelog.py index 4570d0dc140..5e22b6d12ae 100644 --- a/tools/changelog.py +++ b/tools/changelog.py @@ -171,56 +171,7 @@ def _get_pkg_changelog_contents(ctx: Context, version: str): """ changes = _get_changelog_contents(ctx, version) changes = "\n".join(changes.split("\n")[2:]) - changes = changes.replace( - textwrap.dedent( - """ - Removed - ------- - - """ - ), - "", - ) - changes = changes.replace( - textwrap.dedent( - """ - Deprecated - ---------- - - """ - ), - "", - ) - changes = changes.replace( - textwrap.dedent( - """ - Changed - ------- - - """ - ), - "", - ) - changes = changes.replace( - textwrap.dedent( - """ - Fixed - ----- - - """ - ), - "", - ) - changes = changes.replace( - textwrap.dedent( - """ - Added - ----- - - """ - ), - "", - ) + changes = changes.replace("### ", "# ").replace("\n\n\n", "\n\n") return changes