projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e88cb3
)
backports: simplify space regexp for src_line
author
Luis R. Rodriguez
<mcgrof@do-not-panic.com>
Tue, 23 Jul 2013 22:50:00 +0000
(15:50 -0700)
committer
Luis 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
patch
|
blob
|
history
diff --git
a/lib/kconfig.py
b/lib/kconfig.py
index 8a30ddcf592bd2415d52af92b1943e4f671c875d..179121a55d63421d83a68f6749dd608f7417d68a 100644
(file)
--- a/
lib/kconfig.py
+++ b/
lib/kconfig.py
@@
-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]*)')