From 208dabec651e420784276ff72d2ad00e90beb4bd Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Mon, 5 Feb 2024 14:02:10 -0500 Subject: [PATCH] docs: update for Python 3.12 Use "r" (raw) strings for the regexp. Signed-off-by: Jeff Squyres --- docs/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 74336084f39..f27df152c62 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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")