1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-11 16:30:23 +00:00

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>
This commit is contained in:
Ed Bartosh
2015-04-09 14:36:49 +03:00
committed by Richard Purdie
parent 1521a3dda0
commit d0d0ab85c4
9 changed files with 59 additions and 59 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+4 -4
View File
@@ -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
+4 -4
View File
@@ -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". """