[OpenMP] Fix comparison to True/False in openmp/**.py (#94041)

from PEP8
(https://peps.python.org/pep-0008/#programming-recommendations):

> Comparisons to singletons like None should always be done with is or
is not, never the equality operators.

Co-authored-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
This commit is contained in:
Eisuke Kawashima 2024-07-16 23:17:42 +09:00 committed by GitHub
parent 16dd75b41c
commit 11a9ab1257
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ class ompd_init(gdb.Command):
"No ompd_dll_locations symbol in execution, make sure to have an OMPD enabled OpenMP runtime"
)
while gdb.parse_and_eval("(char**)ompd_dll_locations") == False:
while not gdb.parse_and_eval("(char**)ompd_dll_locations"):
gdb.execute("tbreak ompd_dll_locations_valid")
gdb.execute("continue")

View File

@ -83,7 +83,7 @@ if config.operating_system == 'Darwin':
if 'Linux' in config.operating_system:
config.available_features.add("linux")
if config.has_tsan == True:
if config.has_tsan:
config.available_features.add("tsan")
# to run with icc INTEL_LICENSE_FILE must be set