From f8a7510aa52189cbe2953c33324e069d16766a43 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Sat, 6 Jun 2015 13:49:59 +0200 Subject: Ignore indented .config assignments. Just noticed that the C implementation does. Haven't run into it in the wild. For example, the assignment to B below is ignored: CONFIG_A=y CONFIG_B=y --- kconfiglib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kconfiglib.py') diff --git a/kconfiglib.py b/kconfiglib.py index ac907f0..8fa7a36 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -290,7 +290,7 @@ class Config(object): if line is None: return - line = line.strip() + line = line.rstrip() set_match = set_re_match(line) if set_match: -- cgit v1.2.3