Skip to content

Commit 331ffec

Browse files
emmanuel-ferdmanShadowCurse
authored andcommitted
fix(test): resolve regex library warnings
Use keyword args in re.sub to fix deprecation warnings Signed-off-by: Emmanuel Ferdman <[email protected]>
1 parent 184dc54 commit 331ffec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/host_tools/proc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def proc_type():
1313
lines = result.stdout.strip().splitlines()
1414
for line in lines:
1515
if "model name" in line:
16-
return re.sub(".*model name.*:", "", line, 1)
16+
return re.sub(".*model name.*:", "", line, count=1)
1717

1818
cmd = "uname -m"
1919
result = utils.check_output(cmd).stdout.strip()

0 commit comments

Comments
 (0)