PEP and Unused Import
This commit is contained in:
parent
bc66502fda
commit
9f8a8f6a64
@ -215,7 +215,7 @@ def prepare_bootloader(fw_type):
|
||||
boot_p = boot_device[-1:]
|
||||
device = boot_device[:-1]
|
||||
|
||||
if (not boot_p or not device):
|
||||
if not boot_p or not device:
|
||||
return ("EFI directory \"{!s}\" not found!",
|
||||
"Boot partition: \"{!s}\"",
|
||||
"Boot device: \"{!s}\"".format(efi_directory, boot_p, device))
|
||||
|
@ -26,7 +26,7 @@ def run():
|
||||
|
||||
:return:
|
||||
"""
|
||||
returnCode = chroot_call(["update-initramfs", "-k", "all", "-u"])
|
||||
return_code = chroot_call(["update-initramfs", "-k", "all", "-u"])
|
||||
|
||||
if returnCode != 0:
|
||||
return "Failed to run update-initramfs on the target", "The exit code was {}".format(returnCode)
|
||||
if return_code != 0:
|
||||
return "Failed to run update-initramfs on the target", "The exit code was {}".format(return_code)
|
||||
|
@ -26,7 +26,6 @@ import shutil
|
||||
import subprocess
|
||||
import sys
|
||||
import tempfile
|
||||
from collections import namedtuple
|
||||
|
||||
from libcalamares import *
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user