Skip to content

Commit 7daac1a

Browse files
committed
fix(openmp/**.py): fix comparison to None
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.
1 parent 563ae62 commit 7daac1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
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)