[Lldb-commits] [lldb] [lldb] fix(lldb/**.py): fix comparison to True/False (PR #94039)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Mon Jun 3 14:51:36 PDT 2024


================
@@ -39,7 +39,7 @@ def check_simulator_ostype(self, sdk, platform_name, arch=platform.machine()):
             for device in devices:
                 if "availability" in device and device["availability"] != "(available)":
                     continue
-                if "isAvailable" in device and device["isAvailable"] != True:
+                if "isAvailable" in device and device["isAvailable"] is not True:
----------------
JDevlieghere wrote:

Can this be simplified to `if "isAvailable" in device and not device["isAvailable"]:`?

https://github.com/llvm/llvm-project/pull/94039


More information about the lldb-commits mailing list