Skip to content

Commit cf00bb0

Browse files
authoredJul 16, 2024
[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 <[email protected]>
1 parent 11a9ab1 commit cf00bb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎openmp/libompd/gdb-plugin/ompd/ompd_callbacks.py

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

0 commit comments

Comments
 (0)
Please sign in to comment.