diff options
author | Benjamin Gray <bgray@linux.ibm.com> | 2023-09-12 09:07:56 +0300 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2023-09-12 23:27:45 +0300 |
commit | 86a0adc029d338f0da8989e7bb453c1114d51960 (patch) | |
tree | a876e433a1abfa55c1e6a8dab24a41d835b7843d /Documentation/sphinx/kerneldoc.py | |
parent | 0bb80ecc33a8fb5a682236443c1e740d5c917d1d (diff) | |
download | linux-86a0adc029d338f0da8989e7bb453c1114d51960.tar.xz |
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/kerneldoc.py')
-rw-r--r-- | Documentation/sphinx/kerneldoc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/sphinx/kerneldoc.py b/Documentation/sphinx/kerneldoc.py index 9395892c7ba3..8dc134904b90 100644 --- a/Documentation/sphinx/kerneldoc.py +++ b/Documentation/sphinx/kerneldoc.py @@ -130,7 +130,7 @@ class KernelDocDirective(Directive): result = ViewList() lineoffset = 0; - line_regex = re.compile("^\.\. LINENO ([0-9]+)$") + line_regex = re.compile(r"^\.\. LINENO ([0-9]+)$") for line in lines: match = line_regex.search(line) if match: |