diff options
| author | Eisuke Kawashima <e.kawaschima+github@gmail.com> | 2024-06-26 23:59:07 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-26 15:59:07 +0100 |
| commit | 586114510c5fa71d1377c7f53e68a3b12c472aa2 (patch) | |
| tree | 088488d9fd8516621a755de83a45cf4d6c39c5e4 /lldb/test/API/functionalities/step_scripted/TestStepScripted.py | |
| parent | fd35a92300a00edaf56ae94176317390677569a4 (diff) | |
[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@users.noreply.github.com>
Diffstat (limited to 'lldb/test/API/functionalities/step_scripted/TestStepScripted.py')
| -rw-r--r-- | lldb/test/API/functionalities/step_scripted/TestStepScripted.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/test/API/functionalities/step_scripted/TestStepScripted.py b/lldb/test/API/functionalities/step_scripted/TestStepScripted.py index 9891a9c23b50..53901718019f 100644 --- a/lldb/test/API/functionalities/step_scripted/TestStepScripted.py +++ b/lldb/test/API/functionalities/step_scripted/TestStepScripted.py @@ -126,7 +126,7 @@ class StepScriptedTestCase(TestBase): cmd = "thread step-scripted -C Steps.StepReportsStopOthers -k token -v %s" % ( token ) - if run_mode != None: + if run_mode is not None: cmd = cmd + " --run-mode %s" % (run_mode) if self.TraceOn(): print(cmd) |
