-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clear out Python syntax warnings #8229
Conversation
Upstream branch: 6e8ba49 |
7282573
to
6691c3c
Compare
Upstream branch: b9fee10 |
8d9b3ae
to
ce11db4
Compare
6691c3c
to
4435d70
Compare
Upstream branch: f4f25b6 |
ce11db4
to
c624191
Compare
4435d70
to
0c30734
Compare
Upstream branch: 5506b7d |
c624191
to
f403407
Compare
0c30734
to
ed728a4
Compare
Upstream branch: 6a10d2d |
f403407
to
0806c06
Compare
ed728a4
to
29da59c
Compare
Upstream branch: 3d1af4b |
0806c06
to
b7ae1d0
Compare
29da59c
to
e3038dd
Compare
Upstream branch: 00a5acd |
b7ae1d0
to
7375a75
Compare
e3038dd
to
4b09d33
Compare
Upstream branch: 06103dc |
7375a75
to
db71a74
Compare
4b09d33
to
e2b857e
Compare
Upstream branch: 58ecb3a |
db71a74
to
b989318
Compare
e2b857e
to
9a051e1
Compare
Upstream branch: 58ecb3a |
b989318
to
83c46de
Compare
9a051e1
to
bef6461
Compare
Upstream branch: a7c2051 |
83c46de
to
ecf0c77
Compare
bef6461
to
04c6b5e
Compare
Upstream branch: a7c2051 |
ecf0c77
to
2afc13c
Compare
04c6b5e
to
419af5f
Compare
Upstream branch: 8eef6ac |
2afc13c
to
3406cf5
Compare
Upstream branch: 8eef6ac |
Invalid escape sequences are used, and produced syntax warnings: ``` $ test_bpftool_synctypes.py test_bpftool_synctypes.py:69: SyntaxWarning: invalid escape sequence '\[' self.start_marker = re.compile(f'(static )?const bool {self.array_name}\[.*\] = {{\n') test_bpftool_synctypes.py:83: SyntaxWarning: invalid escape sequence '\[' pattern = re.compile('\[(BPF_\w*)\]\s*= (true|false),?$') test_bpftool_synctypes.py:181: SyntaxWarning: invalid escape sequence '\s' pattern = re.compile('^\s*(BPF_\w+),?(\s+/\*.*\*/)?$') test_bpftool_synctypes.py:229: SyntaxWarning: invalid escape sequence '\*' start_marker = re.compile(f'\*{block_name}\* := {{') test_bpftool_synctypes.py:229: SyntaxWarning: invalid escape sequence '\*' start_marker = re.compile(f'\*{block_name}\* := {{') test_bpftool_synctypes.py:230: SyntaxWarning: invalid escape sequence '\*' pattern = re.compile('\*\*([\w/-]+)\*\*') test_bpftool_synctypes.py:248: SyntaxWarning: invalid escape sequence '\s' start_marker = re.compile(f'"\s*{block_name} := {{') test_bpftool_synctypes.py:249: SyntaxWarning: invalid escape sequence '\w' pattern = re.compile('([\w/]+) [|}]') test_bpftool_synctypes.py:267: SyntaxWarning: invalid escape sequence '\s' start_marker = re.compile(f'"\s*{macro}\s*" [|}}]') test_bpftool_synctypes.py:267: SyntaxWarning: invalid escape sequence '\s' start_marker = re.compile(f'"\s*{macro}\s*" [|}}]') test_bpftool_synctypes.py:268: SyntaxWarning: invalid escape sequence '\w' pattern = re.compile('([\w-]+) ?(?:\||}[ }\]])') test_bpftool_synctypes.py:287: SyntaxWarning: invalid escape sequence '\w' pattern = re.compile('(?:.*=\')?([\w/]+)') test_bpftool_synctypes.py:319: SyntaxWarning: invalid escape sequence '\w' pattern = re.compile('([\w-]+) ?(?:\||}[ }\]"])') test_bpftool_synctypes.py:341: SyntaxWarning: invalid escape sequence '\|' start_marker = re.compile('\|COMMON_OPTIONS\| replace:: {') test_bpftool_synctypes.py:342: SyntaxWarning: invalid escape sequence '\*' pattern = re.compile('\*\*([\w/-]+)\*\*') ``` Escaping them clears out the warnings. ``` $ tools/testing/selftests/bpf/test_bpftool_synctypes.py; echo $? 0 ``` Link: https://docs.python.org/fr/3/library/re.html CC: Alexei Starovoitov <[email protected]> CC: Daniel Borkmann <[email protected]> CC: Andrii Nakryiko <[email protected]> CC: Shuah Khan <[email protected]> Signed-off-by: Ariel Otilibili <[email protected]> Tested-by: Quentin Monnet <[email protected]> Reviewed-by: Quentin Monnet <[email protected]>
3406cf5
to
34b3b40
Compare
419af5f
to
c0247f7
Compare
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=916971 irrelevant now. Closing PR. |
Pull request for series with
subject: clear out Python syntax warnings
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=916971