mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 09:55:37 -04:00
Python-style: follow-up to PR 735, remove non-idiomatic use of 'is'
This commit is contained in:
parent
084e304c07
commit
3804e4df68
1 changed files with 3 additions and 3 deletions
|
@ -132,16 +132,16 @@ def modify_mkinitcpio_conf(partitions, root_mount_point):
|
|||
):
|
||||
files.append("/crypto_keyfile.bin")
|
||||
|
||||
if swap_uuid is not "":
|
||||
if swap_uuid != "":
|
||||
if encrypt_hook and openswap_hook:
|
||||
hooks.extend(["openswap"])
|
||||
hooks.extend(["resume", "filesystems"])
|
||||
else:
|
||||
hooks.extend(["filesystems"])
|
||||
|
||||
if btrfs is "yes" and cpu['proc0']['vendor_id'].lower() != "genuineintel":
|
||||
if btrfs == "yes" and cpu['proc0']['vendor_id'].lower() != "genuineintel":
|
||||
modules.append("crc32c")
|
||||
elif (btrfs is "yes"
|
||||
elif (btrfs == "yes"
|
||||
and cpu['proc0']['vendor_id'].lower() == "genuineintel"):
|
||||
modules.append("crc32c-intel")
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue