summaryrefslogtreecommitdiff
path: root/kconfiglib.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2018-03-19 21:30:38 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2018-03-19 21:32:44 +0100
commit9e9cdf8f3045493b38a50913a90a96f338e899cd (patch)
treeb49d8c15f37dd7661c554f2cdc728c79bcdb70b7 /kconfiglib.py
parentef6fca713ce44bf5577ae348a3de092e1df0aa1c (diff)
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 ""'.
Diffstat (limited to 'kconfiglib.py')
-rw-r--r--kconfiglib.py3
1 files changed, 1 insertions, 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