mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-02 01:18:08 +01:00
Silence pylint errors.
This commit is contained in:
parent
b120a39ec6
commit
9950b07204
3 changed files with 3 additions and 3 deletions
|
|
@ -57,7 +57,7 @@ class Distfile():
|
|||
|
||||
def decompress(self):
|
||||
"""Decompresses the distfile."""
|
||||
compression = self.out_file.split('.')[-1]
|
||||
compression = self.out_file.rsplit('.', maxsplit=1)[-1]
|
||||
decompress_func = {
|
||||
"gz": gzip.open,
|
||||
"tgz": gzip.open,
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ class Target:
|
|||
mount("tmpfs", self.path, "tmpfs", f"size={size}")
|
||||
self._type = TargetType.TMPFS
|
||||
|
||||
# pylint: disable=too-many-arguments
|
||||
# pylint: disable=too-many-arguments,too-many-positional-arguments
|
||||
def add_disk(self,
|
||||
name,
|
||||
size="16G",
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ def run_as_root(*args, **kwargs):
|
|||
return run("sudo", *args, **kwargs)
|
||||
return run(*args, **kwargs)
|
||||
|
||||
# pylint: disable=too-many-arguments
|
||||
# pylint: disable=too-many-arguments,too-many-positional-arguments
|
||||
def create_disk(image, disk_type, fs_type, size, bootable=False, mkfs_args=None):
|
||||
"""Create a disk image, with a filesystem on it"""
|
||||
if mkfs_args is None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue