summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2019-10-07 12:30:56 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2019-10-09 09:47:05 +0200
commit275ddef8dfdc2b404e172d8bdbbc10e5c68b4843 (patch)
tree266502bd0dc4687f57e4ee1476c6b2dc4dfc8a28
parent9c08640c457ae22abf4000a5fd37907ebd82fa14 (diff)
menuconfig: _sorted_sc_nodes() code formatting nit
-rwxr-xr-xmenuconfig.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/menuconfig.py b/menuconfig.py
index 552b537..56e1a67 100755
--- a/menuconfig.py
+++ b/menuconfig.py
@@ -73,7 +73,7 @@ This is the current list of built-in styles:
- default classic Kconfiglib theme with a yellow accent
- monochrome colorless theme (uses only bold and standout) attributes,
this style is used if the terminal doesn't support colors
- - aquatic blue tinted style loosely resembling the lxdialog theme
+ - aquatic blue-tinted style loosely resembling the lxdialog theme
It is possible to customize the current style by changing colors of UI
elements on the screen. This is the list of elements that can be stylized:
@@ -2213,9 +2213,7 @@ def _sorted_sc_nodes(cached_nodes=[]):
key=lambda choice: choice.name or "")
cached_nodes += sorted(
- [node
- for choice in choices
- for node in choice.nodes],
+ [node for choice in choices for node in choice.nodes],
key=lambda node: node.prompt[0] if node.prompt else "")
return cached_nodes