chore: use keyword arguments in regex calls to avoid warnings (#8288)

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
This commit is contained in:
Emmanuel Ferdman
2025-05-24 10:30:36 +03:00
committed by GitHub
parent 69f7599e0c
commit 710f480c46
+2 -2
View File
@@ -133,9 +133,9 @@ for line in fin.read().splitlines():
indent = r[1]
name = r[3]
name = re.sub(r'\(.*?\)', '', name, 1) #remove parentheses from macros. E.g. MY_FUNC(5) -> MY_FUNC
name = re.sub(r'\(.*?\)', '', name, count=1) #remove parentheses from macros. E.g. MY_FUNC(5) -> MY_FUNC
line = re.sub(r'[\s]*', '', line, 1)
line = re.sub(r'[\s]*', '', line, count=1)
#If the value should be 1 (enabled) by default use a more complex structure for Kconfig checks because
#if a not defined CONFIG_... value should be interpreted as 0 and not the LVGL default