summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2018-11-18 17:03:13 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2018-11-18 18:58:16 +0100
commitf5fd57c49ab7d858511de696409830ae53f85be7 (patch)
treeb1320b14037288027aa694b7e44a649ecc5e9303
parente7c7d3d26eec02078aca9619047f241e3f50cfa2 (diff)
menuconfig: Get rid of a temporary list in the jump-to implemenation
Not noticeable performance-wise, but a bit neater.
-rwxr-xr-xmenuconfig.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/menuconfig.py b/menuconfig.py
index 027f64f..448789e 100755
--- a/menuconfig.py
+++ b/menuconfig.py
@@ -2048,8 +2048,8 @@ def _sorted_menu_comment_nodes(cached_nodes=[]):
def prompt_text(mc):
return mc.prompt[0]
- cached_nodes += sorted(_kconf.menus, key=prompt_text) + \
- sorted(_kconf.comments, key=prompt_text)
+ cached_nodes += sorted(_kconf.menus, key=prompt_text)
+ cached_nodes += sorted(_kconf.comments, key=prompt_text)
return cached_nodes