From: Luis R. Rodriguez Date: Tue, 23 Jul 2013 22:50:00 +0000 (-0700) Subject: backports: simplify space regexp for src_line X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e7e61b8d5561f7b5c23b5a9a15e33f7e009768e4;p=openwrt%2Fstaging%2Fblogic.git backports: simplify space regexp for src_line The regexp doesn't require the extra brackets. Signed-off-by: Luis R. Rodriguez --- 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]*)')