diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2020-01-12 10:34:47 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2020-01-12 10:34:55 +0100 |
| commit | aff414dc82d22e25ab8673f27a8d9e0cb4298e5f (patch) | |
| tree | 4f63a38d12beed468096c995951c6923bf0b3efb /guiconfig.py | |
| parent | d613b746e8b76bb8733254318591f07303465404 (diff) | |
guiconfig: Shorten _sorted_sc_nodes() a bit
Makes it consistent with menuconfig.py.
Diffstat (limited to 'guiconfig.py')
| -rwxr-xr-x | guiconfig.py | 4 |
1 files changed, 1 insertions, 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 |
