From f5fd57c49ab7d858511de696409830ae53f85be7 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Sun, 18 Nov 2018 17:03:13 +0100 Subject: menuconfig: Get rid of a temporary list in the jump-to implemenation Not noticeable performance-wise, but a bit neater. --- menuconfig.py | 4 ++-- 1 file 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 -- cgit v1.2.3