mirror of
https://git.yoctoproject.org/poky
synced 2026-07-15 15:37:03 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
4862a4c33a
commit
a4da21d92f
@@ -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
|
||||
|
||||
|
||||
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user