Skip to content

Commit

Permalink
docs: update for Python 3.12
Browse files Browse the repository at this point in the history
Python 3.12 no longer allows escapes in regular expressions. Instead, use "r" strings.

Signed-off-by: Ralph Castain <rhc@pmix.org>
(cherry picked from commit 5906e63)
  • Loading branch information
rhc54 committed Sep 15, 2024
1 parent 404657c commit d093dce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/docs/show-help-files/build-dummy-ini-files.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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))

Expand Down

0 comments on commit d093dce

Please sign in to comment.