PEP and Unused Import

This commit is contained in:
Gormogon 2015-06-14 08:22:35 -04:00
parent bc66502fda
commit 9f8a8f6a64
3 changed files with 4 additions and 5 deletions

View File

@ -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))

View File

@ -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)

View File

@ -26,7 +26,6 @@ import shutil
import subprocess
import sys
import tempfile
from collections import namedtuple
from libcalamares import *