mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-26 11:07:34 +08:00
chore: use keyword arguments in regex calls to avoid warnings (#8288)
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user