PEP8 whining

This commit is contained in:
Adriaan de Groot 2017-08-31 04:51:34 -04:00 committed by Philip
parent e3a86c6dfc
commit 17e76677c7

View File

@ -65,11 +65,12 @@ def write_mkinitcpio_lines(hooks, modules, files, root_mount_point):
:param files:
:param root_mount_point:
"""
hostfile = "/etc/mkinitcpio.conf"
try:
with open("/etc/mkinitcpio.conf", "r") as mkinitcpio_file:
with open(hostfile, "r") as mkinitcpio_file:
mklins = [x.strip() for x in mkinitcpio_file.readlines()]
except FileNotFoundError:
libcalamares.utils.debug("Could not open host file /etc/mkinitcpio.conf")
libcalamares.utils.debug("Could not open host file '%s'" % hostfile)
mklins = []
for i in range(len(mklins)):