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/wic/plugins/source/rawcopy.py | |
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/wic/plugins/source/rawcopy.py')
-rw-r--r-- | scripts/lib/wic/plugins/source/rawcopy.py | 4 |
1 files changed, 2 insertions, 2 deletions
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): | |||
62 | 62 | ||
63 | msger.debug('Bootimg dir: %s' % bootimg_dir) | 63 | msger.debug('Bootimg dir: %s' % bootimg_dir) |
64 | 64 | ||
65 | if ('file' not in source_params): | 65 | if 'file' not in source_params: |
66 | msger.error("No file specified\n") | 66 | msger.error("No file specified\n") |
67 | return | 67 | return |
68 | 68 | ||
69 | src = os.path.join(bootimg_dir, source_params['file']) | 69 | src = os.path.join(bootimg_dir, source_params['file']) |
70 | dst = src | 70 | dst = src |
71 | 71 | ||
72 | if ('skip' in source_params): | 72 | if 'skip' in source_params: |
73 | dst = os.path.join(cr_workdir, source_params['file']) | 73 | dst = os.path.join(cr_workdir, source_params['file']) |
74 | dd_cmd = "dd if=%s of=%s ibs=%s skip=1 conv=notrunc" % \ | 74 | dd_cmd = "dd if=%s of=%s ibs=%s skip=1 conv=notrunc" % \ |
75 | (src, dst, source_params['skip']) | 75 | (src, dst, source_params['skip']) |