diff options
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: | |||
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 @@ | |||
18 | import os | 18 | import os |
19 | import time | 19 | import time |
20 | 20 | ||
21 | def build_name(kscfg, release=None, prefix = None, suffix = None): | 21 | def 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 @@ | |||
28 | from wic import msger | 28 | from wic import msger |
29 | from wic.utils import runner | 29 | from wic.utils import runner |
30 | 30 | ||
31 | def __exec_cmd(cmd_and_args, as_shell = False, catch = 3): | 31 | def __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 | ||
52 | def exec_cmd(cmd_and_args, as_shell = False, catch = 3): | 52 | def 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 | ||
66 | def exec_cmd_quiet(cmd_and_args, as_shell = False): | 66 | def 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 | ||
75 | def exec_native_cmd(cmd_and_args, native_sysroot, catch = 3): | 75 | def 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". """ |