From e7e61b8d5561f7b5c23b5a9a15e33f7e009768e4 Mon Sep 17 00:00:00 2001 From: "Luis R. Rodriguez" Date: Tue, 23 Jul 2013 15:50:00 -0700 Subject: [PATCH] backports: simplify space regexp for src_line The regexp doesn't require the extra brackets. Signed-off-by: Luis R. Rodriguez --- lib/kconfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/kconfig.py b/lib/kconfig.py index 8a30ddcf592b..179121a55d63 100644 --- a/lib/kconfig.py +++ b/lib/kconfig.py @@ -4,7 +4,7 @@ import os, re -src_line = re.compile(r'^[\s]*source\s+"?(?P[^\s"]*)"?\s*$') +src_line = re.compile(r'^\s*source\s+"?(?P[^\s"]*)"?\s*$') tri_line = re.compile(r'^(?P\s+)tristate') bool_line = re.compile(r'^(?P\s+)bool') cfg_line = re.compile(r'^(config|menuconfig)\s+(?P[^\s]*)') -- 2.30.2