From 3804e4df6813f8195422b7f7e7c2d65150ecb35c Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Sun, 4 Jun 2017 11:37:12 +0200 Subject: [PATCH] Python-style: follow-up to PR 735, remove non-idiomatic use of 'is' --- src/modules/initcpiocfg/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/initcpiocfg/main.py b/src/modules/initcpiocfg/main.py index 2f6f12b52..eb29d7def 100644 --- a/src/modules/initcpiocfg/main.py +++ b/src/modules/initcpiocfg/main.py @@ -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: