Skip to content

Commit

Permalink
docs: update for Python 3.12
Browse files Browse the repository at this point in the history
Use "r" (raw) strings for the regexp.

Signed-off-by: Jeff Squyres <[email protected]>
  • Loading branch information
jsquyres committed Feb 5, 2024
1 parent 9d69edb commit 208dabe
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 @@ -242,7 +242,7 @@ def _doit(topdir):
for root, dirs, files in os.walk(topdir):
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 208dabe

Please sign in to comment.