summaryrefslogtreecommitdiff
path: root/samples/seccomp
diff options
context:
space:
mode:
authorAlessandro Zanni <alessandro.zanni87@gmail.com>2024-08-06 14:14:50 +0200
committerShuah Khan <skhan@linuxfoundation.org>2024-10-02 14:30:58 -0600
commita19008256d05e726f29f43c6a307e45482c082c3 (patch)
tree74b85ebd4eb1c31efb42539f4c4ef0049afbe3d2 /samples/seccomp
parent160c826b4dd0d570f0f51cf002cb49bda807e9f5 (diff)
kselftest/devices/probe: Fix SyntaxWarning in regex strings for Python3
Insert raw strings to prevent Python3 from interpreting string literals as Unicode strings and "\d" as invalid escaped sequence. Fix the warnings: tools/testing/selftests/devices/probe/test_discoverable_devices.py:48: SyntaxWarning: invalid escape sequence '\d' usb_controller_sysfs_dir = "usb[\d]+" tools/testing/selftests/devices/probe/test_discoverable_devices.py: 94: SyntaxWarning: invalid escape sequence '\d' re_usb_version = re.compile("PRODUCT=.*/(\d)/.*") Fixes: dacf1d7a78bf ("kselftest: Add test to verify probe of devices from discoverable buses") Reviewed-by: NĂ­colas F. R. A. Prado <nfraprado@collabora.com> Signed-off-by: Alessandro Zanni <alessandro.zanni87@gmail.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'samples/seccomp')
0 files changed, 0 insertions, 0 deletions