]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
moveconfig: Correct some regular-expression strings
authorSimon Glass <sjg@chromium.org>
Sat, 23 Sep 2023 19:43:57 +0000 (13:43 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 4 Oct 2023 15:25:20 +0000 (09:25 -0600)
Use the 'r' prefix for these strings to avoid pylint warnings.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/moveconfig.py

index 36202fe5134cfae4b5184b9dabd0409c3dfaaf0b..0b0ce64e81fecc1d5d70611f618fd5d260a47cfc 100755 (executable)
@@ -1153,10 +1153,10 @@ def prefix_config(cfg):
     return op + cfg
 
 
-RE_MK_CONFIGS = re.compile('CONFIG_(\$\(SPL_(?:TPL_)?\))?([A-Za-z0-9_]*)')
-RE_IFDEF = re.compile('(ifdef|ifndef)')
-RE_C_CONFIGS = re.compile('CONFIG_([A-Za-z0-9_]*)')
-RE_CONFIG_IS = re.compile('CONFIG_IS_ENABLED\(([A-Za-z0-9_]*)\)')
+RE_MK_CONFIGS = re.compile(r'CONFIG_(\$\(SPL_(?:TPL_)?\))?([A-Za-z0-9_]*)')
+RE_IFDEF = re.compile(r'(ifdef|ifndef)')
+RE_C_CONFIGS = re.compile(r'CONFIG_([A-Za-z0-9_]*)')
+RE_CONFIG_IS = re.compile(r'CONFIG_IS_ENABLED\(([A-Za-z0-9_]*)\)')
 
 class ConfigUse:
     def __init__(self, cfg, is_spl, fname, rest):