From 653aaea3ccd4b671a6753bc9aecceb08f9eb0e41 Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Tue, 31 Jan 2017 19:31:55 +0200 Subject: wic: code cleanup Fixed indentation, unused imports, trailing lines etc. [YOCTO #10619] (From OE-Core rev: 5fa7768bfb4b6d464c6a812822b0665f52e7bea4) Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- scripts/lib/wic/help.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/lib/wic/help.py') diff --git a/scripts/lib/wic/help.py b/scripts/lib/wic/help.py index daa11bf489..1bd411deeb 100644 --- a/scripts/lib/wic/help.py +++ b/scripts/lib/wic/help.py @@ -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: -- cgit v1.2.3-54-g00ecf