[all-commits] [llvm/llvm-project] ca92bd: [cross-project-tests] Use "is" instead of "==" to ...

Eisuke Kawashima via All-commits all-commits at lists.llvm.org
Mon Jan 13 04:03:26 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ca92bdfa3ef8f9a1cc97167fc96601f8bd7b436b
      https://github.com/llvm/llvm-project/commit/ca92bdfa3ef8f9a1cc97167fc96601f8bd7b436b
  Author: Eisuke Kawashima <e.kawaschima+github at gmail.com>
  Date:   2025-01-13 (Mon, 13 Jan 2025)

  Changed paths:
    M cross-project-tests/debuginfo-tests/dexter/dex/command/ParseCommand.py
    M cross-project-tests/debuginfo-tests/dexter/dex/debugger/DebuggerControllers/ConditionalController.py
    M cross-project-tests/debuginfo-tests/dexter/dex/debugger/DebuggerControllers/ControllerHelpers.py
    M cross-project-tests/debuginfo-tests/dexter/dex/debugger/Debuggers.py
    M cross-project-tests/debuginfo-tests/dexter/dex/debugger/visualstudio/VisualStudio.py
    M cross-project-tests/debuginfo-tests/dexter/dex/tools/test/Tool.py
    M cross-project-tests/lit.cfg.py

  Log Message:
  -----------
  [cross-project-tests] Use "is" instead of "==" to check for None (#94016)

>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.



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