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:38:16 +0100 |
commit | a64604d11f75973b4c2347fa2669da9889e44013 (patch) | |
tree | 7f82503cb4457b233c28edb39a751bac865f5888 /scripts/lib/image | |
parent | 2009df2aa048bb51b7b3050b69a44fe414c4de9d (diff) | |
download | openembedded-core-a64604d11f75973b4c2347fa2669da9889e44013.tar.gz openembedded-core-a64604d11f75973b4c2347fa2669da9889e44013.tar.bz2 openembedded-core-a64604d11f75973b4c2347fa2669da9889e44013.zip |
wic: code cleanup: superfluous-parens
Removed unncecessary parents after 'if' 'del' and 'print' keywords.
Fixed pyling warning: Unnecessary parens after 'xxx' keyword
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
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): rootfs_dir = kernel_dir = bootimg_dir = native_sysroot = "" for line in bitbake_env_lines.split('\n'): - if (misc.get_line_val(line, "IMAGE_ROOTFS")): + if misc.get_line_val(line, "IMAGE_ROOTFS"): rootfs_dir = misc.get_line_val(line, "IMAGE_ROOTFS") continue - if (misc.get_line_val(line, "DEPLOY_DIR_IMAGE")): + if misc.get_line_val(line, "DEPLOY_DIR_IMAGE"): kernel_dir = misc.get_line_val(line, "DEPLOY_DIR_IMAGE") continue - if (misc.get_line_val(line, "STAGING_DIR_NATIVE")): + if misc.get_line_val(line, "STAGING_DIR_NATIVE"): native_sysroot = misc.get_line_val(line, "STAGING_DIR_NATIVE") continue 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): Subcommand help dispatcher. """ if len(args) == 1 or not display_help(args[1], subcommands): - print(usage_str) + print usage_str def get_wic_plugins_help(): |