From 275ddef8dfdc2b404e172d8bdbbc10e5c68b4843 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Mon, 7 Oct 2019 12:30:56 +0200 Subject: menuconfig: _sorted_sc_nodes() code formatting nit --- menuconfig.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'menuconfig.py') 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 -- cgit v1.2.3