Re: [PATCH v2] kselftest/devices/probe: Fix SyntaxWarning in regex strings for Python 3

2024-08-05 Thread Shuah Khan
On 8/5/24 04:37, Alessandro Zanni wrote: Insert raw strings to prevent Python3 from interpreting string literals as Unicode strings and, consequently, '\d' as an invalid escaped sequence. Avoid the 'SyntaxWarning: invalid escape sequence '\d'' warning for Python versions greater than 3.6. Ch

[PATCH v2] kselftest/devices/probe: Fix SyntaxWarning in regex strings for Python 3

2024-08-05 Thread Alessandro Zanni
Insert raw strings to prevent Python3 from interpreting string literals as Unicode strings and, consequently, '\d' as an invalid escaped sequence. Avoid the 'SyntaxWarning: invalid escape sequence '\d'' warning for Python versions greater than 3.6. Fixes: dacf1d7a78bf ("kselftest: Add test to ve