@@ -1026,8 +1026,7 @@ def main():
subparser_settings = parser_settings.add_subparsers(dest="subcommand", required=True, help="The action to perform on the settings file")
- parser_settings_list = subparser_settings.add_parser('list',
- help="List all settings with their values")
+ subparser_settings.add_parser('list', help="List all settings with their values")
parser_settings_set = subparser_settings.add_parser('set', parents=[parser_settings_arg_global],
help="In a Section, set a setting to a certain value")
The ruff lint tool detected an used variable: F841 Local variable `parser_settings_list` is assigned to but never used The list_settings function gets invoked through the parent command's settings_func function. This means that creating this variable is unnecessary. Signed-off-by: Rob Woolley <rob.woolley@windriver.com> --- bin/bitbake-setup | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)