[all-commits] [llvm/llvm-project] 94ed47: fix(llvm/**.py): fix comparison to None (#94018)

Eisuke Kawashima via All-commits all-commits at lists.llvm.org
Wed Aug 28 04:20:19 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 94ed47f2e98ca62155a56a486e81215ce38da45d
      https://github.com/llvm/llvm-project/commit/94ed47f2e98ca62155a56a486e81215ce38da45d
  Author: Eisuke Kawashima <e.kawaschima+github at gmail.com>
  Date:   2024-08-28 (Wed, 28 Aug 2024)

  Changed paths:
    M llvm/utils/indirect_calls.py
    M llvm/utils/lit/lit/TestRunner.py
    M llvm/utils/lit/lit/util.py
    M llvm/utils/schedcover.py
    M llvm/utils/shuffle_select_fuzz_tester.py

  Log Message:
  -----------
  fix(llvm/**.py): fix comparison to None (#94018)

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 at users.noreply.github.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list