diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-04-09 14:36:49 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-04-13 22:33:20 +0100 |
commit | d0d0ab85c49d7a874bef8b8d8844bbe9b1dc0c49 (patch) | |
tree | 7907a4a29e7d02b43af97f6f12c156519517438f /scripts/lib/wic/utils | |
parent | 1521a3dda0a6ebcedb52f4a410f705c8d68d0a11 (diff) | |
download | openembedded-core-contrib-d0d0ab85c49d7a874bef8b8d8844bbe9b1dc0c49.tar.gz |
wic:code cleanup: No space allowed
Fixed pylint warning
'No space allowed around keyword argument assignment'
(From OE-Core rev: e07dd9b9c71960fbeded162ed52fbce06de620e9)
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/utils')
-rw-r--r-- | scripts/lib/wic/utils/fs_related.py | 2 | ||||
-rw-r--r-- | scripts/lib/wic/utils/misc.py | 2 | ||||
-rw-r--r-- | scripts/lib/wic/utils/oe/misc.py | 8 | ||||
-rw-r--r-- | scripts/lib/wic/utils/partitionedfs.py | 8 |
4 files changed, 10 insertions, 10 deletions
diff --git a/scripts/lib/wic/utils/fs_related.py b/scripts/lib/wic/utils/fs_related.py index 1e266b16c1..d0bc8ee6d3 100644 --- a/scripts/lib/wic/utils/fs_related.py +++ b/scripts/lib/wic/utils/fs_related.py @@ -57,7 +57,7 @@ class Disk: """ Generic base object for a disk. """ - def __init__(self, size, device = None): + def __init__(self, size, device=None): self._device = device self._size = size diff --git a/scripts/lib/wic/utils/misc.py b/scripts/lib/wic/utils/misc.py index 5d6337c9cf..9d750694df 100644 --- a/scripts/lib/wic/utils/misc.py +++ b/scripts/lib/wic/utils/misc.py @@ -18,7 +18,7 @@ import os import time -def build_name(kscfg, release=None, prefix = None, suffix = None): +def build_name(kscfg, release=None, prefix=None, suffix=None): """Construct and return an image name string. This is a utility function to help create sensible name and fslabel diff --git a/scripts/lib/wic/utils/oe/misc.py b/scripts/lib/wic/utils/oe/misc.py index 7769f3ff72..119f07276e 100644 --- a/scripts/lib/wic/utils/oe/misc.py +++ b/scripts/lib/wic/utils/oe/misc.py @@ -28,7 +28,7 @@ from wic import msger from wic.utils import runner -def __exec_cmd(cmd_and_args, as_shell = False, catch = 3): +def __exec_cmd(cmd_and_args, as_shell=False, catch=3): """ Execute command, catching stderr, stdout @@ -49,7 +49,7 @@ def __exec_cmd(cmd_and_args, as_shell = False, catch = 3): return (rc, out) -def exec_cmd(cmd_and_args, as_shell = False, catch = 3): +def exec_cmd(cmd_and_args, as_shell=False, catch=3): """ Execute command, catching stderr, stdout @@ -63,7 +63,7 @@ def exec_cmd(cmd_and_args, as_shell = False, catch = 3): return out -def exec_cmd_quiet(cmd_and_args, as_shell = False): +def exec_cmd_quiet(cmd_and_args, as_shell=False): """ Execute command, catching nothing in the output @@ -72,7 +72,7 @@ def exec_cmd_quiet(cmd_and_args, as_shell = False): return exec_cmd(cmd_and_args, as_shell, 0) -def exec_native_cmd(cmd_and_args, native_sysroot, catch = 3): +def exec_native_cmd(cmd_and_args, native_sysroot, catch=3): """ Execute native command, catching stderr, stdout diff --git a/scripts/lib/wic/utils/partitionedfs.py b/scripts/lib/wic/utils/partitionedfs.py index bb99c6a6c1..b9fbc16e12 100644 --- a/scripts/lib/wic/utils/partitionedfs.py +++ b/scripts/lib/wic/utils/partitionedfs.py @@ -86,9 +86,9 @@ class Image: self.partitions.append(part) self.__add_disk(part['disk_name']) - def add_partition(self, size, disk_name, mountpoint, source_file = None, fstype = None, - label=None, fsopts = None, boot = False, align = None, no_table=False, - part_type = None): + def add_partition(self, size, disk_name, mountpoint, source_file=None, fstype=None, + label=None, fsopts=None, boot=False, align=None, no_table=False, + part_type=None): """ Add the next partition. Prtitions have to be added in the first-to-last order. """ @@ -116,7 +116,7 @@ class Image: self.__add_partition(part) - def layout_partitions(self, ptable_format = "msdos"): + def layout_partitions(self, ptable_format="msdos"): """ Layout the partitions, meaning calculate the position of every partition on the disk. The 'ptable_format' parameter defines the partition table format and may be "msdos". """ |