mirror of
https://git.yoctoproject.org/poky
synced 2026-04-26 00:32:12 +02:00
wic: code cleanup
Fixed indentation, unused imports, trailing lines etc. [YOCTO #10619] (From OE-Core rev: 5fa7768bfb4b6d464c6a812822b0665f52e7bea4) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
1f7ce90af6
commit
653aaea3cc
@@ -31,7 +31,7 @@ import logging
|
||||
from wic.plugin import pluginmgr, PLUGIN_TYPES
|
||||
|
||||
def subcommand_error(args):
|
||||
logging.info("invalid subcommand %s" % args[0])
|
||||
logging.info("invalid subcommand %s", args[0])
|
||||
|
||||
|
||||
def display_help(subcommand, subcommands):
|
||||
@@ -87,7 +87,7 @@ def invoke_subcommand(args, parser, main_command_usage, subcommands):
|
||||
elif args[0] == "help":
|
||||
wic_help(args, main_command_usage, subcommands)
|
||||
elif args[0] not in subcommands:
|
||||
logging.error("Unsupported subcommand %s, exiting\n" % (args[0]))
|
||||
logging.error("Unsupported subcommand %s, exiting\n", args[0])
|
||||
parser.print_help()
|
||||
return 1
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user