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/wic/plugins | |
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/wic/plugins')
-rw-r--r-- | scripts/lib/wic/plugins/source/fsimage.py | 2 | ||||
-rw-r--r-- | scripts/lib/wic/plugins/source/rawcopy.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/scripts/lib/wic/plugins/source/fsimage.py b/scripts/lib/wic/plugins/source/fsimage.py index 98f02a1e09..f894e89367 100644 --- a/scripts/lib/wic/plugins/source/fsimage.py +++ b/scripts/lib/wic/plugins/source/fsimage.py @@ -62,7 +62,7 @@ class FSImagePlugin(SourcePlugin): msger.debug('Bootimg dir: %s' % bootimg_dir) - if ('file' not in source_params): + if 'file' not in source_params: msger.error("No file specified\n") return diff --git a/scripts/lib/wic/plugins/source/rawcopy.py b/scripts/lib/wic/plugins/source/rawcopy.py index 071b2d2032..f0691baa91 100644 --- a/scripts/lib/wic/plugins/source/rawcopy.py +++ b/scripts/lib/wic/plugins/source/rawcopy.py @@ -62,14 +62,14 @@ class RawCopyPlugin(SourcePlugin): msger.debug('Bootimg dir: %s' % bootimg_dir) - if ('file' not in source_params): + if 'file' not in source_params: msger.error("No file specified\n") return src = os.path.join(bootimg_dir, source_params['file']) dst = src - if ('skip' in source_params): + if 'skip' in source_params: dst = os.path.join(cr_workdir, source_params['file']) dd_cmd = "dd if=%s of=%s ibs=%s skip=1 conv=notrunc" % \ (src, dst, source_params['skip']) |