aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-09-23 13:43:57 -0600
committerSimon Glass <sjg@chromium.org>2023-10-04 09:25:20 -0600
commit98275712404a513649e8de5332c69a801ad3a743 (patch)
tree5059d3b4d688ebc6e81055df7a4aaaf6c81f2a74 /tools
parent03137421f5c89d6f3864b3261890670b52bdfb65 (diff)
downloadu-boot-98275712404a513649e8de5332c69a801ad3a743.zip
u-boot-98275712404a513649e8de5332c69a801ad3a743.tar.gz
u-boot-98275712404a513649e8de5332c69a801ad3a743.tar.bz2
moveconfig: Correct some regular-expression strings
Use the 'r' prefix for these strings to avoid pylint warnings. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/moveconfig.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/moveconfig.py b/tools/moveconfig.py
index 36202fe..0b0ce64 100755
--- a/tools/moveconfig.py
+++ b/tools/moveconfig.py
@@ -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):