Skip to content

Commit 53a0ef5

Browse files
e-kwsmyuxuanchen1997
authored andcommitted
[OpenMP] Fix comparison to None in openmp/**.py (#94020)
Summary: 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]> Test Plan: Reviewers: Subscribers: Tasks: Tags: Differential Revision: https://phabricator.intern.facebook.com/D60251609
1 parent 3782847 commit 53a0ef5

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)