From d093dce82ad7a6fc9a81c3461f72d5833dede069 Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Sun, 15 Sep 2024 13:43:36 -0600 Subject: [PATCH] docs: update for Python 3.12 Python 3.12 no longer allows escapes in regular expressions. Instead, use "r" strings. Signed-off-by: Ralph Castain (cherry picked from commit 5906e63380728042619f94727d795e0be6b92f00) --- src/docs/show-help-files/build-dummy-ini-files.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/docs/show-help-files/build-dummy-ini-files.py b/src/docs/show-help-files/build-dummy-ini-files.py index 57781cb57a..e5ab6d9f55 100755 --- a/src/docs/show-help-files/build-dummy-ini-files.py +++ b/src/docs/show-help-files/build-dummy-ini-files.py @@ -2,7 +2,7 @@ # # Copyright 2023 Jeffrey M. Squyres. All rights reserved. # -# Copyright (c) 2023 Nanook Consulting. All rights reserved. +# Copyright (c) 2023-2024 Nanook Consulting All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow @@ -57,7 +57,7 @@ # Find all the "[section]" lines. sections = list() for line in src_rst: - match = re.search('\s*\[(.+)\]\s*$', line) + match = re.search(r"\s*\[(.+)\]\s*$", line) if match: sections.append(match.group(1))