diff options
author | Benjamin Gray <bgray@linux.ibm.com> | 2023-09-12 16:07:56 +1000 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2023-09-12 14:27:45 -0600 |
commit | 86a0adc029d338f0da8989e7bb453c1114d51960 (patch) | |
tree | a876e433a1abfa55c1e6a8dab24a41d835b7843d /Documentation/sphinx/kernel_feat.py | |
parent | 0bb80ecc33a8fb5a682236443c1e740d5c917d1d (diff) | |
download | linux-86a0adc029d338f0da8989e7bb453c1114d51960.tar.gz linux-86a0adc029d338f0da8989e7bb453c1114d51960.tar.bz2 linux-86a0adc029d338f0da8989e7bb453c1114d51960.zip |
Documentation/sphinx: fix Python string escapes
Python 3.6 introduced a DeprecationWarning for invalid escape sequences.
This is upgraded to a SyntaxWarning in Python 3.12, and will eventually
be a syntax error.
Fix these now to get ahead of it before it's an error.
Signed-off-by: Benjamin Gray <bgray@linux.ibm.com>
Message-ID: <20230912060801.95533-3-bgray@linux.ibm.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/sphinx/kernel_feat.py')
-rw-r--r-- | Documentation/sphinx/kernel_feat.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/sphinx/kernel_feat.py b/Documentation/sphinx/kernel_feat.py index 27b701ed3681..b5fa2f0542a5 100644 --- a/Documentation/sphinx/kernel_feat.py +++ b/Documentation/sphinx/kernel_feat.py @@ -104,7 +104,7 @@ class KernelFeat(Directive): lines = self.runCmd(cmd, shell=True, cwd=cwd, env=shell_env) - line_regex = re.compile("^\.\. FILE (\S+)$") + line_regex = re.compile(r"^\.\. FILE (\S+)$") out_lines = "" |