Skip to content

Commit

Permalink
Update the Python regex for doc build
Browse files Browse the repository at this point in the history
Python no longer accepts escape sequences in the
regex - need to use raw strings.

Signed-off-by: Ralph Castain <rhc@pmix.org>
  • Loading branch information
rhc54 committed Feb 4, 2024
1 parent f1f89e7 commit 129571d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@
for root, dirs, files in os.walk("man"):
for filename in files:
# Parse filenames of the format a "foo.X.rst"
parts = re.search("^([^/]+?)\.([0-9]+)\.rst$", filename)
parts = re.search(r"^([^/]+?).([0-9]+).rst$", filename)

# Skip files that do not match that format (e.g.,
# "index.rst")
Expand Down

0 comments on commit 129571d

Please sign in to comment.