From aff414dc82d22e25ab8673f27a8d9e0cb4298e5f Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Sun, 12 Jan 2020 10:34:47 +0100 Subject: guiconfig: Shorten _sorted_sc_nodes() a bit Makes it consistent with menuconfig.py. --- guiconfig.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/guiconfig.py b/guiconfig.py index d333be4..f940500 100755 --- a/guiconfig.py +++ b/guiconfig.py @@ -1961,9 +1961,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