Use correct regex to avoid SyntaxWarning: invalid escape sequence '\.'

Change-Id: I1c6179be294bf21c0897a3abf7e8ab1d270ae238
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/amdsmi commit: d9ccc44146]
This commit is contained in:
Michael John authored and Dmitrii Galantsev committed 2024-09-16 15:45:15 -04:00
1 parent 0aa6bda175
commit 78d4fe59ea
1 file changed
+1 -1
+1 -1
View File
@@ -123,7 +123,7 @@ class BDF():
"""Overrided the 'in' comparator in python"""
passed_bdf = str(BDF(passed_bdf))
bdf_regex = "(?:[0-6]?[0-9a-fA-F]{1,4}:)?[0-2]?[0-9a-fA-F]{1,2}:[0-9a-fA-F]{1,2}\.[0-7]"
bdf_regex = "(?:[0-6]?[0-9a-fA-F]{1,4}:)?[0-2]?[0-9a-fA-F]{1,2}:[0-9a-fA-F]{1,2}\\.[0-7]"
for match in re.findall(bdf_regex, passed_bdf):
if self == match:
return True