Fixing PEP – 257 Violations

main
Gormogon 11 years ago committed by Teo Mrnjavac
parent 113d9db7cb
commit b4db9fe64b

@ -223,8 +223,7 @@ 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.

@ -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…
Cancel
Save