[all-commits] [llvm/llvm-project] e81820: [clang] Fix python comparison to None (#94014)

Eisuke Kawashima via All-commits all-commits at lists.llvm.org
Thu Sep 19 07:33:35 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e8182029516dae445f21db304953aa5f10880d2d
      https://github.com/llvm/llvm-project/commit/e8182029516dae445f21db304953aa5f10880d2d
  Author: Eisuke Kawashima <e.kawaschima+github at gmail.com>
  Date:   2024-09-19 (Thu, 19 Sep 2024)

  Changed paths:
    M clang/docs/DebuggingCoroutines.rst
    M clang/tools/include-mapping/gen_std.py
    M clang/utils/check_cfc/obj_diff.py
    M clang/utils/module-deps-to-rsp.py

  Log Message:
  -----------
  [clang] Fix python comparison to None (#94014)

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