From a64604d11f75973b4c2347fa2669da9889e44013 Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Wed, 17 Jun 2015 14:47:47 +0300 Subject: 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 --- scripts/lib/wic/plugins/source/rawcopy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/lib/wic/plugins/source/rawcopy.py') 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']) -- cgit 1.2.3-korg