From ddfd0618d608f1518a48014a3cf1ec1992f7f6b5 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Sat, 2 Dec 2023 11:43:28 +0000 Subject: [PATCH] bin/gen_release_notes: fix regex raw string Fixes: ba6336ce3e6fa8f32c55 ("docs: use version-number as toctree-title for relnotes") Part-of: (cherry picked from commit 2a6d750a53ecec2882d77fc3250989815830c9bf) --- .pick_status.json | 2 +- bin/gen_release_notes.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pick_status.json b/.pick_status.json index e70649362dd..8da1196b85b 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -114,7 +114,7 @@ "description": "bin/gen_release_notes: fix regex raw string", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "ba6336ce3e6fa8f32c558fbaeefc4b5a5c4d3beb", "notes": null diff --git a/bin/gen_release_notes.py b/bin/gen_release_notes.py index 5520e55f17c..1ad60a30680 100755 --- a/bin/gen_release_notes.py +++ b/bin/gen_release_notes.py @@ -325,7 +325,7 @@ def update_release_notes_index(version: str) -> None: first_list = False new_relnotes.append(f'- :doc:`{version} release notes `\n') if (not first_list and second_list and - re.match(' \d+.\d+(.\d+)? ', line)): + re.match(r' \d+.\d+(.\d+)? ', line)): second_list = False new_relnotes.append(f' {version} \n') new_relnotes.append(line)