Hi,
I noticed that Python 3.12 shows SyntaxWarning: invalid escape sequence '\s' for runguard_config = re.sub("#define\s+VALID_USERS[^\n]+", '#define VALID_USERS "' + runguard_valid_users + '"', runguard_config) in install script. I fixed it to avoid possible problems in the future.
A backslash-character pair that is not a valid escape sequence now generates a SyntaxWarning, instead of DeprecationWarning. For example, re.compile("\d+.\d+") now emits a SyntaxWarning ("\d" is an invalid escape sequence, use raw strings for regular expression: re.compile(r"\d+.\d+")). In a future Python version, SyntaxError will eventually be raised, instead of SyntaxWarning. (Contributed by Victor Stinner in gh-98401.)
Hi, I noticed that Python 3.12 shows
SyntaxWarning: invalid escape sequence '\s'
forrunguard_config = re.sub("#define\s+VALID_USERS[^\n]+", '#define VALID_USERS "' + runguard_valid_users + '"', runguard_config)
in install script. I fixed it to avoid possible problems in the future.https://docs.python.org/dev/whatsnew/3.12.html#other-language-changes