From 8916953b534f64a7545860ad5b4b36dc2544f33a Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Tue, 23 Jul 2024 10:21:42 -0700 Subject: 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 --- doc/manpages/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/manpages/conf.py') 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(): -- cgit v1.2.3