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/kickstart/custom_commands | |
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/kickstart/custom_commands')
-rw-r--r-- | scripts/lib/wic/kickstart/custom_commands/partition.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/lib/wic/kickstart/custom_commands/partition.py b/scripts/lib/wic/kickstart/custom_commands/partition.py index 40c2772914..324ea690ec 100644 --- a/scripts/lib/wic/kickstart/custom_commands/partition.py +++ b/scripts/lib/wic/kickstart/custom_commands/partition.py @@ -268,7 +268,7 @@ class Wic_PartData(Mic_PartData): extra_imagecmd = "-i 8192" label_str = "" - if (self.label): + if self.label: label_str = "-L %s" % self.label mkfs_cmd = "mkfs.%s -F %s %s %s -d %s" % \ @@ -315,7 +315,7 @@ class Wic_PartData(Mic_PartData): exec_cmd(dd_cmd) label_str = "" - if (self.label): + if self.label: label_str = "-L %s" % self.label mkfs_cmd = "mkfs.%s -b %d -r %s %s %s" % \ @@ -361,7 +361,7 @@ class Wic_PartData(Mic_PartData): blocks += (16 - (blocks % 16)) label_str = "-n boot" - if (self.label): + if self.label: label_str = "-n %s" % self.label dosfs_cmd = "mkdosfs %s -S 512 -C %s %d" % (label_str, rootfs, blocks) @@ -436,7 +436,7 @@ class Wic_PartData(Mic_PartData): extra_imagecmd = "-i 8192" label_str = "" - if (self.label): + if self.label: label_str = "-L %s" % self.label mkfs_cmd = "mkfs.%s -F %s %s %s" % \ @@ -460,7 +460,7 @@ class Wic_PartData(Mic_PartData): exec_cmd(dd_cmd) label_str = "" - if (self.label): + if self.label: label_str = "-L %s" % self.label mkfs_cmd = "mkfs.%s -b %d %s %s" % \ @@ -482,7 +482,7 @@ class Wic_PartData(Mic_PartData): blocks = self.size label_str = "-n boot" - if (self.label): + if self.label: label_str = "-n %s" % self.label dosfs_cmd = "mkdosfs %s -S 512 -C %s %d" % (label_str, fs, blocks) @@ -553,7 +553,7 @@ class Wic_Partition(Mic_Partition): def _getParser(self): def overhead_cb (option, opt_str, value, parser): - if (value < 1): + if value < 1: raise OptionValueError("Option %s: invalid value: %r" % (option, value)) setattr(parser.values, option.dest, value) |