diff options
| author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2017-01-31 19:31:55 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-02-02 17:37:44 +0000 |
| commit | 653aaea3ccd4b671a6753bc9aecceb08f9eb0e41 (patch) | |
| tree | 0eb9d944309e79eae732c76eb483533625aec22f /scripts/lib/wic/help.py | |
| parent | 1f7ce90af6e2e3ae23e11eae85d13f7c93b032cd (diff) | |
| download | poky-653aaea3ccd4b671a6753bc9aecceb08f9eb0e41.tar.gz | |
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>
Diffstat (limited to 'scripts/lib/wic/help.py')
| -rw-r--r-- | scripts/lib/wic/help.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 | |||
| 31 | from wic.plugin import pluginmgr, PLUGIN_TYPES | 31 | from wic.plugin import pluginmgr, PLUGIN_TYPES |
| 32 | 32 | ||
| 33 | def subcommand_error(args): | 33 | def subcommand_error(args): |
| 34 | logging.info("invalid subcommand %s" % args[0]) | 34 | logging.info("invalid subcommand %s", args[0]) |
| 35 | 35 | ||
| 36 | 36 | ||
| 37 | def display_help(subcommand, subcommands): | 37 | def display_help(subcommand, subcommands): |
| @@ -87,7 +87,7 @@ def invoke_subcommand(args, parser, main_command_usage, subcommands): | |||
| 87 | elif args[0] == "help": | 87 | elif args[0] == "help": |
| 88 | wic_help(args, main_command_usage, subcommands) | 88 | wic_help(args, main_command_usage, subcommands) |
| 89 | elif args[0] not in subcommands: | 89 | elif args[0] not in subcommands: |
| 90 | logging.error("Unsupported subcommand %s, exiting\n" % (args[0])) | 90 | logging.error("Unsupported subcommand %s, exiting\n", args[0]) |
| 91 | parser.print_help() | 91 | parser.print_help() |
| 92 | return 1 | 92 | return 1 |
| 93 | else: | 93 | else: |
