Skip to content

Commit 992d780

Browse files
committed
fix(llvm/**.py): fix comparison to True/False
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 1e4e1ce commit 992d780

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/utils/indirect_calls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def look_for_indirect(file):
3131

3232
function = ""
3333
for line in stdout.splitlines():
34-
if line.startswith(" ") == False:
34+
if not line.startswith(" "):
3535
function = line
3636
result = re.search("(call|jmp).*\*", line)
3737
if result is not None:

0 commit comments

Comments
 (0)