From 798640be0d74c550c5729578d126a32acb951692 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Thu, 31 Aug 2017 04:51:34 -0400 Subject: [PATCH] PEP8 whining --- src/modules/initcpiocfg/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/initcpiocfg/main.py b/src/modules/initcpiocfg/main.py index ca9455d20..a18cd0c4f 100644 --- a/src/modules/initcpiocfg/main.py +++ b/src/modules/initcpiocfg/main.py @@ -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)):