In python 3.12, the deprecation warning for backslash-character pairs in plain strings has been changed to a syntax warning. See https://docs.python.org/3/whatsnew/3.12.html:
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.) I'm attaching a patch that changes all strings passed to re methods to raw strings. That shuts up the syntax warnings. ** Patch added: "Change all strings passed to re methods to raw strings" https://bugs.launchpad.net/ubuntu/+source/debian-goodies/+bug/2061374/+attachment/5791390/+files/checkrestart.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2061374 Title: Python SyntaxWarnings To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/debian-goodies/+bug/2061374/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs