summaryrefslogtreecommitdiff
path: root/utils/ipc
diff options
context:
space:
mode:
authorPaul Elder <paul.elder@ideasonboard.com>2024-01-22 20:01:04 +0900
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2024-01-23 02:21:30 +0200
commit81791d2cac70a3f549db85fb2e40e385b24e76fc (patch)
treeba693cc4cf72f1afeaba54709b08decf2fabcc64 /utils/ipc
parente6832973749c993bcd4a9c5837f2caf5d164cad2 (diff)
utils: ipc: extract-docs: Fix escape characters in regex
Newer versions of python now generate a SyntaxWarning (SyntaxError in the future [1]) for invalid escape sequences. Fix this, as there were invalid escape sequences in the regexes: "libcamera/utils/ipc/./extract-docs.py:13: SyntaxWarning: invalid escape sequence '\/'" [1] https://docs.python.org/3.12/library/re.html Reported-by: Nicolas Dufresne <nicolas@ndufresne.ca> Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Tested-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'utils/ipc')
-rwxr-xr-xutils/ipc/extract-docs.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/ipc/extract-docs.py b/utils/ipc/extract-docs.py
index 8f7fff9f..c2050c99 100755
--- a/utils/ipc/extract-docs.py
+++ b/utils/ipc/extract-docs.py
@@ -10,9 +10,9 @@ import argparse
import re
import sys
-regex_block_start = re.compile('^\/\*\*$')
-regex_block_end = re.compile('^ \*\/$')
-regex_spdx = re.compile('^\/\* SPDX-License-Identifier: .* \*\/$')
+regex_block_start = re.compile(r'^/\*\*$')
+regex_block_end = re.compile(r'^ \*/$')
+regex_spdx = re.compile(r'^/\* SPDX-License-Identifier: .* \*/$')
def main(argv):