summaryrefslogtreecommitdiff
path: root/Documentation/sphinx/kernel_abi.py
diff options
context:
space:
mode:
authorBenjamin Gray <bgray@linux.ibm.com>2023-09-12 09:07:56 +0300
committerJonathan Corbet <corbet@lwn.net>2023-09-12 23:27:45 +0300
commit86a0adc029d338f0da8989e7bb453c1114d51960 (patch)
treea876e433a1abfa55c1e6a8dab24a41d835b7843d /Documentation/sphinx/kernel_abi.py
parent0bb80ecc33a8fb5a682236443c1e740d5c917d1d (diff)
downloadlinux-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/kernel_abi.py')
-rw-r--r--Documentation/sphinx/kernel_abi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/sphinx/kernel_abi.py b/Documentation/sphinx/kernel_abi.py
index b5feb5b1d905..49797c55479c 100644
--- a/Documentation/sphinx/kernel_abi.py
+++ b/Documentation/sphinx/kernel_abi.py
@@ -138,7 +138,7 @@ class KernelCmd(Directive):
code_block += "\n " + l
lines = code_block + "\n\n"
- line_regex = re.compile("^\.\. LINENO (\S+)\#([0-9]+)$")
+ line_regex = re.compile(r"^\.\. LINENO (\S+)\#([0-9]+)$")
ln = 0
n = 0
f = fname