summaryrefslogtreecommitdiffstats
path: root/scripts/lib/scriptutils.py
diff options
context:
space:
mode:
authorQuentin Schulz <quentin.schulz@cherry.de>2025-06-06 16:21:33 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-06-06 22:22:43 +0100
commit4549ff19aaaab09060b4ed4c4aab062fc2213598 (patch)
treef36d08c5ab2e9415884940266b276e51f6df6d8f /scripts/lib/scriptutils.py
parentac52e9a94fe5dac8e6289c228b6ba7c966c72331 (diff)
downloadpoky-4549ff19aaaab09060b4ed4c4aab062fc2213598.tar.gz
docs: conf.py: silence SyntaxWarning on js_splitter_code
The js_splitter_code string contains backslashes that Python tries to use as escape sequence but doesn't manage to, hence the following SyntaxWarning message: documentation/conf.py:188: SyntaxWarning: invalid escape sequence '\p' .split(/[^\p{Letter}\p{Number}_\p{Emoji_Presentation}-]+/gu) Considering that we want this to be sent verbatim to the JS, let's make this a raw string instead. Fixes: d4a98ee19e0c ("conf.py: tweak SearchEnglish to be hyphen-friendly") (From yocto-docs rev: c1056672ef45b197136eb8815728d426337a5901) Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de> Signed-off-by: Antonin Godard <antonin.godard@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/scriptutils.py')
0 files changed, 0 insertions, 0 deletions