summaryrefslogtreecommitdiff
path: root/doc/manpages/conf.py
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2024-07-23 10:21:42 -0700
committerDavid Lamparter <equinox@opensourcerouting.org>2024-07-23 10:23:50 -0700
commit8916953b534f64a7545860ad5b4b36dc2544f33a (patch)
tree98fa71269f150691adbc58aee6d843e608029c64 /doc/manpages/conf.py
parent04b818dd4ca1b490da500aff5f40f07ff8e20396 (diff)
build: fix a few python string escape warnings
When using a regex (or anything that uses `\?` escapes) in python, raw strings (`r"content"`) should be used so python doesn't consume the escapes itself. Otherwise we get either broken behavior and/or `SyntaxWarning: invalid escape sequence '\['` Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'doc/manpages/conf.py')
-rw-r--r--doc/manpages/conf.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/manpages/conf.py b/doc/manpages/conf.py
index 73dea094ae..995885b220 100644
--- a/doc/manpages/conf.py
+++ b/doc/manpages/conf.py
@@ -91,7 +91,7 @@ replace_vars = {
# extract version information, installation location, other stuff we need to
# use when building final documents
-val = re.compile('^S\["([^"]+)"\]="(.*)"$')
+val = re.compile(r'^S\["([^"]+)"\]="(.*)"$')
try:
with open("../../config.status", "r") as cfgstatus:
for ln in cfgstatus.readlines():