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:28:33 +0100 |
commit | e07dd9b9c71960fbeded162ed52fbce06de620e9 (patch) | |
tree | aa1d921dda0ef092a655bf44d54f69d514ec6826 /scripts/lib/wic/kickstart | |
parent | 9946909dc95c3274a98112cf786d171547b3ed75 (diff) | |
download | openembedded-core-e07dd9b9c71960fbeded162ed52fbce06de620e9.tar.gz openembedded-core-e07dd9b9c71960fbeded162ed52fbce06de620e9.tar.bz2 openembedded-core-e07dd9b9c71960fbeded162ed52fbce06de620e9.zip |
wic:code cleanup: No space allowed
Fixed pylint warning
'No space allowed around keyword argument assignment'
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/kickstart')
-rw-r--r-- | scripts/lib/wic/kickstart/__init__.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/lib/wic/kickstart/__init__.py b/scripts/lib/wic/kickstart/__init__.py index 10959213d1..111723b133 100644 --- a/scripts/lib/wic/kickstart/__init__.py +++ b/scripts/lib/wic/kickstart/__init__.py @@ -68,7 +68,7 @@ def read_kickstart(path): return ks -def get_image_size(ks, default = None): +def get_image_size(ks, default=None): __size = 0 for p in ks.handler.partition.partitions: if p.mountpoint == "/" and p.size: @@ -78,40 +78,40 @@ def get_image_size(ks, default = None): else: return default -def get_image_fstype(ks, default = None): +def get_image_fstype(ks, default=None): for p in ks.handler.partition.partitions: if p.mountpoint == "/" and p.fstype: return p.fstype return default -def get_image_fsopts(ks, default = None): +def get_image_fsopts(ks, default=None): for p in ks.handler.partition.partitions: if p.mountpoint == "/" and p.fsopts: return p.fsopts return default -def get_timeout(ks, default = None): +def get_timeout(ks, default=None): if not hasattr(ks.handler.bootloader, "timeout"): return default if ks.handler.bootloader.timeout is None: return default return int(ks.handler.bootloader.timeout) -def get_kernel_args(ks, default = "ro rd.live.image"): +def get_kernel_args(ks, default="ro rd.live.image"): if not hasattr(ks.handler.bootloader, "appendLine"): return default if ks.handler.bootloader.appendLine is None: return default return "%s %s" %(default, ks.handler.bootloader.appendLine) -def get_menu_args(ks, default = ""): +def get_menu_args(ks, default=""): if not hasattr(ks.handler.bootloader, "menus"): return default if ks.handler.bootloader.menus in (None, ""): return default return "%s" % ks.handler.bootloader.menus -def get_default_kernel(ks, default = None): +def get_default_kernel(ks, default=None): if not hasattr(ks.handler.bootloader, "default"): return default if not ks.handler.bootloader.default: |