Re: [PATCH 5/6] tools: selftests/bpf: test_bpftool_synctypes: escape raw symbols
From: Quentin Monnet
Date: Wed Jan 29 2025 - 15:13:40 EST
2025-01-29 18:39 UTC+0100 ~ Mauro Carvalho Chehab
<mchehab+huawei@xxxxxxxxxx>
> Modern Python versions complain about usage of "\" inside normal
> strings, as they should use r-string notation.
>
> Change the annotations there to avoid such warnings:
>
> tools/testing/selftests/bpf/test_bpftool_synctypes.py:319: SyntaxWarning: invalid escape sequence '\w' pattern = re.compile('([\w-]+) ?(?:\||}[ }\]"])')
>
> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@xxxxxxxxxx>
Hi, and thanks! But please note we have a fix for this in the bpf-next
tree already:
https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git/commit/?id=c5d2bac978c513e1f22273cba9c55db3778032e5
Thanks,
Quentin