diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2019-12-22 14:19:40 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2020-01-12 10:26:41 +0100 |
| commit | c49bbbbe35e725a75bc6c2fa08ed957ab3f73fcb (patch) | |
| tree | e38febec388bc0821d069a59af211501942b2cec /menuconfig.py | |
| parent | 73a38df409073e16450ecb8272b344e02221dbf4 (diff) | |
Put some comments at the end of lines.
Shortens things a bit.
Diffstat (limited to 'menuconfig.py')
| -rwxr-xr-x | menuconfig.py | 15 |
1 files changed, 5 insertions, 10 deletions
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: |
