[OpenMP] Fix comparison to None in openmp/**.py (#94020)

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:18:16 +09:00
committed by GitHub
parent 11a9ab1257
commit cf00bb0074

View File

@@ -84,7 +84,7 @@ def _thread_context(*args):
m = re.search(r"(0x[a-fA-F0-9]+)", line)
elif lwp:
m = re.search(r"\([^)]*?(\d+)[^)]*?\)", line)
if m == None:
if m is None:
continue
pid = int(m.group(1), 0)
if pid == thread_id: