backports: simplify space regexp for src_line
authorLuis R. Rodriguez <mcgrof@do-not-panic.com>
Tue, 23 Jul 2013 22:50:00 +0000 (15:50 -0700)
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>
Tue, 23 Jul 2013 22:50:00 +0000 (15:50 -0700)
The regexp doesn't require the extra brackets.

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
lib/kconfig.py

index 8a30ddcf592bd2415d52af92b1943e4f671c875d..179121a55d63421d83a68f6749dd608f7417d68a 100644 (file)
@@ -4,7 +4,7 @@
 
 import os, re
 
-src_line = re.compile(r'^[\s]*source\s+"?(?P<src>[^\s"]*)"?\s*$')
+src_line = re.compile(r'^\s*source\s+"?(?P<src>[^\s"]*)"?\s*$')
 tri_line = re.compile(r'^(?P<spc>\s+)tristate')
 bool_line = re.compile(r'^(?P<spc>\s+)bool')
 cfg_line = re.compile(r'^(config|menuconfig)\s+(?P<sym>[^\s]*)')