aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorAdrian Moreno <[email protected]>2024-04-16 11:09:13 +0200
committerJakub Kicinski <[email protected]>2024-04-17 18:27:08 -0700
commit3fde60afe1f84746c1177861bd27b3ebb00cb8f5 (patch)
treed7729a2456bbb554f6b9306b283053bd7f797f39 /tools/perf/scripts/python/net_dropmonitor.py
parent94e2a19a0e225bed4abec41650aee62ed99adbdb (diff)
selftests: openvswitch: Fix escape chars in regexp.
Character sequences starting with `\` are interpreted by python as escaped Unicode characters. However, they have other meaning in regular expressions (e.g: "\d"). It seems Python >= 3.12 starts emitting a SyntaxWarning when these escaped sequences are not recognized as valid Unicode characters. An example of these warnings: tools/testing/selftests/net/openvswitch/ovs-dpctl.py:505: SyntaxWarning: invalid escape sequence '\d' Fix all the warnings by flagging literals as raw strings. Signed-off-by: Adrian Moreno <[email protected]> Reviewed-by: Aaron Conole <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions