summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/utils
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-04-09 14:36:49 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-04-13 22:33:20 +0100
commitd0d0ab85c49d7a874bef8b8d8844bbe9b1dc0c49 (patch)
tree7907a4a29e7d02b43af97f6f12c156519517438f /scripts/lib/wic/utils
parent1521a3dda0a6ebcedb52f4a410f705c8d68d0a11 (diff)
downloadpoky-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.py2
-rw-r--r--scripts/lib/wic/utils/misc.py2
-rw-r--r--scripts/lib/wic/utils/oe/misc.py8
-rw-r--r--scripts/lib/wic/utils/partitionedfs.py8
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:
57 """ 57 """
58 Generic base object for a disk. 58 Generic base object for a disk.
59 """ 59 """
60 def __init__(self, size, device = None): 60 def __init__(self, size, device=None):
61 self._device = device 61 self._device = device
62 self._size = size 62 self._size = size
63 63
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 @@
18import os 18import os
19import time 19import time
20 20
21def build_name(kscfg, release=None, prefix = None, suffix = None): 21def build_name(kscfg, release=None, prefix=None, suffix=None):
22 """Construct and return an image name string. 22 """Construct and return an image name string.
23 23
24 This is a utility function to help create sensible name and fslabel 24 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 @@
28from wic import msger 28from wic import msger
29from wic.utils import runner 29from wic.utils import runner
30 30
31def __exec_cmd(cmd_and_args, as_shell = False, catch = 3): 31def __exec_cmd(cmd_and_args, as_shell=False, catch=3):
32 """ 32 """
33 Execute command, catching stderr, stdout 33 Execute command, catching stderr, stdout
34 34
@@ -49,7 +49,7 @@ def __exec_cmd(cmd_and_args, as_shell = False, catch = 3):
49 return (rc, out) 49 return (rc, out)
50 50
51 51
52def exec_cmd(cmd_and_args, as_shell = False, catch = 3): 52def exec_cmd(cmd_and_args, as_shell=False, catch=3):
53 """ 53 """
54 Execute command, catching stderr, stdout 54 Execute command, catching stderr, stdout
55 55
@@ -63,7 +63,7 @@ def exec_cmd(cmd_and_args, as_shell = False, catch = 3):
63 return out 63 return out
64 64
65 65
66def exec_cmd_quiet(cmd_and_args, as_shell = False): 66def exec_cmd_quiet(cmd_and_args, as_shell=False):
67 """ 67 """
68 Execute command, catching nothing in the output 68 Execute command, catching nothing in the output
69 69
@@ -72,7 +72,7 @@ def exec_cmd_quiet(cmd_and_args, as_shell = False):
72 return exec_cmd(cmd_and_args, as_shell, 0) 72 return exec_cmd(cmd_and_args, as_shell, 0)
73 73
74 74
75def exec_native_cmd(cmd_and_args, native_sysroot, catch = 3): 75def exec_native_cmd(cmd_and_args, native_sysroot, catch=3):
76 """ 76 """
77 Execute native command, catching stderr, stdout 77 Execute native command, catching stderr, stdout
78 78
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:
86 self.partitions.append(part) 86 self.partitions.append(part)
87 self.__add_disk(part['disk_name']) 87 self.__add_disk(part['disk_name'])
88 88
89 def add_partition(self, size, disk_name, mountpoint, source_file = None, fstype = None, 89 def add_partition(self, size, disk_name, mountpoint, source_file=None, fstype=None,
90 label=None, fsopts = None, boot = False, align = None, no_table=False, 90 label=None, fsopts=None, boot=False, align=None, no_table=False,
91 part_type = None): 91 part_type=None):
92 """ Add the next partition. Prtitions have to be added in the 92 """ Add the next partition. Prtitions have to be added in the
93 first-to-last order. """ 93 first-to-last order. """
94 94
@@ -116,7 +116,7 @@ class Image:
116 116
117 self.__add_partition(part) 117 self.__add_partition(part)
118 118
119 def layout_partitions(self, ptable_format = "msdos"): 119 def layout_partitions(self, ptable_format="msdos"):
120 """ Layout the partitions, meaning calculate the position of every 120 """ Layout the partitions, meaning calculate the position of every
121 partition on the disk. The 'ptable_format' parameter defines the 121 partition on the disk. The 'ptable_format' parameter defines the
122 partition table format and may be "msdos". """ 122 partition table format and may be "msdos". """