diff options
| author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-06-17 14:47:47 +0300 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-06-23 11:47:36 +0100 |
| commit | a4da21d92f461e85e90a866f4a1da34ba1c9551a (patch) | |
| tree | 79bbf1c403f08487f4a4c29327fff0e0758dbf7b /scripts/lib/image | |
| parent | 4862a4c33a461d0f4dd75843d2f0a8b03a593b05 (diff) | |
| download | poky-a4da21d92f461e85e90a866f4a1da34ba1c9551a.tar.gz | |
wic: code cleanup: superfluous-parens
Removed unncecessary parents after 'if' 'del' and 'print' keywords.
Fixed pyling warning: Unnecessary parens after 'xxx' keyword
(From OE-Core rev: a64604d11f75973b4c2347fa2669da9889e44013)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/image')
| -rw-r--r-- | scripts/lib/image/engine.py | 6 | ||||
| -rw-r--r-- | scripts/lib/image/help.py | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/scripts/lib/image/engine.py b/scripts/lib/image/engine.py index 05c26386e7..c568d695df 100644 --- a/scripts/lib/image/engine.py +++ b/scripts/lib/image/engine.py | |||
| @@ -70,13 +70,13 @@ def find_artifacts(image_name): | |||
| 70 | rootfs_dir = kernel_dir = bootimg_dir = native_sysroot = "" | 70 | rootfs_dir = kernel_dir = bootimg_dir = native_sysroot = "" |
| 71 | 71 | ||
| 72 | for line in bitbake_env_lines.split('\n'): | 72 | for line in bitbake_env_lines.split('\n'): |
| 73 | if (misc.get_line_val(line, "IMAGE_ROOTFS")): | 73 | if misc.get_line_val(line, "IMAGE_ROOTFS"): |
| 74 | rootfs_dir = misc.get_line_val(line, "IMAGE_ROOTFS") | 74 | rootfs_dir = misc.get_line_val(line, "IMAGE_ROOTFS") |
| 75 | continue | 75 | continue |
| 76 | if (misc.get_line_val(line, "DEPLOY_DIR_IMAGE")): | 76 | if misc.get_line_val(line, "DEPLOY_DIR_IMAGE"): |
| 77 | kernel_dir = misc.get_line_val(line, "DEPLOY_DIR_IMAGE") | 77 | kernel_dir = misc.get_line_val(line, "DEPLOY_DIR_IMAGE") |
| 78 | continue | 78 | continue |
| 79 | if (misc.get_line_val(line, "STAGING_DIR_NATIVE")): | 79 | if misc.get_line_val(line, "STAGING_DIR_NATIVE"): |
| 80 | native_sysroot = misc.get_line_val(line, "STAGING_DIR_NATIVE") | 80 | native_sysroot = misc.get_line_val(line, "STAGING_DIR_NATIVE") |
| 81 | continue | 81 | continue |
| 82 | 82 | ||
diff --git a/scripts/lib/image/help.py b/scripts/lib/image/help.py index 93211498d5..886437ba60 100644 --- a/scripts/lib/image/help.py +++ b/scripts/lib/image/help.py | |||
| @@ -53,7 +53,7 @@ def wic_help(args, usage_str, subcommands): | |||
| 53 | Subcommand help dispatcher. | 53 | Subcommand help dispatcher. |
| 54 | """ | 54 | """ |
| 55 | if len(args) == 1 or not display_help(args[1], subcommands): | 55 | if len(args) == 1 or not display_help(args[1], subcommands): |
| 56 | print(usage_str) | 56 | print usage_str |
| 57 | 57 | ||
| 58 | 58 | ||
| 59 | def get_wic_plugins_help(): | 59 | def get_wic_plugins_help(): |
