[all-commits] [llvm/llvm-project] 586114: [lldb] fix(lldb/**.py): fix comparison to None (#9...

Eisuke Kawashima via All-commits all-commits at lists.llvm.org
Wed Jun 26 07:59:29 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 586114510c5fa71d1377c7f53e68a3b12c472aa2
      https://github.com/llvm/llvm-project/commit/586114510c5fa71d1377c7f53e68a3b12c472aa2
  Author: Eisuke Kawashima <e.kawaschima+github at gmail.com>
  Date:   2024-06-26 (Wed, 26 Jun 2024)

  Changed paths:
    M lldb/bindings/interface/SBBreakpointDocstrings.i
    M lldb/bindings/interface/SBDataExtensions.i
    M lldb/docs/use/python.rst
    M lldb/examples/python/armv7_cortex_m_target_defintion.py
    M lldb/packages/Python/lldbsuite/test/dotest.py
    M lldb/packages/Python/lldbsuite/test/lldbtest.py
    M lldb/packages/Python/lldbsuite/test/lldbutil.py
    M lldb/packages/Python/lldbsuite/test/tools/intelpt/intelpt_testcase.py
    M lldb/test/API/functionalities/breakpoint/address_breakpoints/TestBadAddressBreakpoints.py
    M lldb/test/API/functionalities/step_scripted/TestStepScripted.py
    M lldb/test/API/functionalities/stop-on-sharedlibrary-load/TestStopOnSharedlibraryEvents.py
    M lldb/test/API/lua_api/TestLuaAPI.py
    M lldb/test/API/macosx/thread_suspend/TestInternalThreadSuspension.py
    M lldb/test/API/python_api/event/TestEvents.py
    M lldb/test/API/python_api/process/read-mem-cstring/TestReadMemCString.py
    M lldb/test/API/python_api/type/TestTypeList.py
    M lldb/test/API/python_api/was_interrupted/interruptible.py
    M lldb/test/Shell/lit.cfg.py

  Log Message:
  -----------
  [lldb] fix(lldb/**.py): fix comparison to None (#94017)

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