mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +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
@@ -38,7 +38,7 @@ def __exec_cmd(cmd_and_args, as_shell=False, catch=3):
|
||||
args = cmd_and_args.split()
|
||||
msger.debug(args)
|
||||
|
||||
if (as_shell):
|
||||
if as_shell:
|
||||
rc, out = runner.runtool(cmd_and_args, catch)
|
||||
else:
|
||||
rc, out = runner.runtool(args, catch)
|
||||
@@ -142,7 +142,7 @@ def find_artifact(bitbake_env_lines, variable):
|
||||
retval = ""
|
||||
|
||||
for line in bitbake_env_lines.split('\n'):
|
||||
if (get_line_val(line, variable)):
|
||||
if get_line_val(line, variable):
|
||||
retval = get_line_val(line, variable)
|
||||
break
|
||||
|
||||
@@ -160,7 +160,7 @@ def get_line_val(line, key):
|
||||
|
||||
def get_bitbake_var(key):
|
||||
for line in __bitbake_env_lines.split('\n'):
|
||||
if (get_line_val(line, key)):
|
||||
if get_line_val(line, key):
|
||||
val = get_line_val(line, key)
|
||||
return val
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user