From c49bbbbe35e725a75bc6c2fa08ed957ab3f73fcb Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Sun, 22 Dec 2019 14:19:40 +0100 Subject: Put some comments at the end of lines. Shortens things a bit. --- menuconfig.py | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'menuconfig.py') diff --git a/menuconfig.py b/menuconfig.py index 5bbe7e1..0338c03 100755 --- a/menuconfig.py +++ b/menuconfig.py @@ -1098,8 +1098,7 @@ def _enter_menu(menu): global _menu_scroll if not menu.is_menuconfig: - # Not a menu - return False + return False # Not a menu shown_sub = _shown_nodes(menu) # Never enter empty menus. We depend on having a current node. @@ -2439,12 +2438,10 @@ def _info_dialog(node, from_jump_to_dialog): # Support starting a search from within the information dialog if from_jump_to_dialog: - # Avoid recursion - return + return # Avoid recursion if _jump_to_dialog(): - # Jumped to a symbol. Cancel the information dialog. - return + return # Jumped to a symbol. Cancel the information dialog. # Stay in the information dialog if the jump-to dialog was # canceled. Resize it in case the terminal was resized while the @@ -2589,8 +2586,7 @@ def _info_str(node): _kconfig_def_info(choice) ) - # node.item in (MENU, COMMENT) - return _kconfig_def_info(node) + return _kconfig_def_info(node) # node.item in (MENU, COMMENT) def _name_info(sc): @@ -3097,8 +3093,7 @@ def _check_valid(sym, s): # Otherwise, displays an error and returns False. if sym.orig_type not in (INT, HEX): - # Anything goes for non-int/hex symbols - return True + return True # Anything goes for non-int/hex symbols base = 10 if sym.orig_type == INT else 16 try: -- cgit v1.2.3