Fixing PEP – 257 Violations
This commit is contained in:
parent
113d9db7cb
commit
b4db9fe64b
@ -223,9 +223,8 @@ def set_autologin(username, displaymanagers, default_desktop_environment,
|
||||
|
||||
|
||||
def run():
|
||||
"""
|
||||
Configure display managers.
|
||||
|
||||
"""Configure display managers.
|
||||
|
||||
We acquire a list of displaymanagers, either from config or (overridden) from globalstorage.
|
||||
This module will try to set up (including autologin) all the displaymanagers in the list, in that specific order.
|
||||
Most distros will probably only ship one displaymanager.
|
||||
|
@ -111,10 +111,7 @@ class FstabGenerator(object):
|
||||
self.ssd_disks = {x for x in disks if is_ssd_disk(x)}
|
||||
|
||||
def generate_fstab(self):
|
||||
"""
|
||||
Create fstab.
|
||||
|
||||
"""
|
||||
""" Create fstab. """
|
||||
mkdir_p(os.path.join(self.root_mount_point, "etc"))
|
||||
fstab_path = os.path.join(self.root_mount_point, "etc", "fstab")
|
||||
with open(fstab_path, "w") as fl:
|
||||
|
@ -53,8 +53,7 @@ def cpuinfo():
|
||||
|
||||
|
||||
def set_mkinitcpio_hooks_and_modules(hooks, modules, root_mount_point):
|
||||
"""
|
||||
Set up mkinitcpio.conf.
|
||||
""" Set up mkinitcpio.conf.
|
||||
|
||||
:param hooks:
|
||||
:param modules:
|
||||
@ -77,8 +76,7 @@ def set_mkinitcpio_hooks_and_modules(hooks, modules, root_mount_point):
|
||||
|
||||
|
||||
def modify_mkinitcpio_conf(partitions, root_mount_point):
|
||||
"""
|
||||
Modifies mkinitcpio.conf
|
||||
""" Modifies mkinitcpio.conf
|
||||
|
||||
:param partitions:
|
||||
:param root_mount_point:
|
||||
|
Loading…
Reference in New Issue
Block a user