From 9e9cdf8f3045493b38a50913a90a96f338e899cd Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Mon, 19 Mar 2018 21:30:38 +0100 Subject: Remove empty prompt text check in _flatten() Originally taken from the C implementation, but seems pointless. The only way to get an empty prompt text is to explicitly define a symbol with e.g. 'prompt ""'. --- kconfiglib.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kconfiglib.py b/kconfiglib.py index 99bdf80..5c62a57 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -4461,8 +4461,7 @@ def _flatten(node): # with no unexpected "jumps" in the indentation. while node: - if node.list and (not node.prompt or node.prompt[0] == ""): - + if node.list and not node.prompt: last_node = node.list while 1: last_node.parent = node.parent -- cgit v1.2.3