github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {darker}-->


:warning: Python code formatter, darker found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
darker --check --diff -r origin/main...HEAD 
lldb/examples/python/templates/scripted_process.py 
lldb/test/API/functionalities/scripted_process/dummy_scripted_process.py
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- test/API/functionalities/scripted_process/dummy_scripted_process.py 
2025-09-04 01:32:22.000000 +0000
+++ test/API/functionalities/scripted_process/dummy_scripted_process.py 
2025-09-04 01:35:19.715376 +0000
@@ -75,19 +75,20 @@
         self.frames.append(DummyScriptedFrame(self, args, len(self.frames), 
"foo"))
 
         cwd = os.path.dirname(os.path.abspath(__file__))
 
         le = lldb.SBLineEntry()
-        le.SetFileSpec(lldb.SBFileSpec(os.path.join(cwd,"baz.cpp"),  True))
+        le.SetFileSpec(lldb.SBFileSpec(os.path.join(cwd, "baz.cpp"), True))
         le.SetLine(9)
         le.SetColumn(10)
 
         sym_ctx = lldb.SBSymbolContext()
         sym_ctx.SetLineEntry(le)
 
-        self.frames.append(DummyScriptedFrame(self, args, len(self.frames),
-                                              "baz", sym_ctx))
+        self.frames.append(
+            DummyScriptedFrame(self, args, len(self.frames), "baz", sym_ctx)
+        )
 
     def get_thread_id(self) -> int:
         return 0x19
 
     def get_name(self) -> str:
@@ -175,14 +176,17 @@
             if not sym_ctx_list.IsValid() or sym_ctx_list.GetSize() == 0:
                 return None
 
             return sym_ctx_list.GetContextAtIndex(0)
 
-        return self.sym_ctx if self.sym_ctx else 
get_symbol_context_for_function(self.name)
+        return (
+            self.sym_ctx if self.sym_ctx else 
get_symbol_context_for_function(self.name)
+        )
 
     def get_scripted_frame_plugin(self):
         return DummyScriptedFrame.__module__ + "." + 
DummyScriptedFrame.__name__
+
 
 def __lldb_init_module(debugger, dict):
     # This is used when loading the script in an interactive debug session to
     # automatically, register the stop-hook and launch the scripted process.
     if not "SKIP_SCRIPTED_PROCESS_LAUNCH" in os.environ:

``````````

</details>


https://github.com/llvm/llvm-project/pull/149622
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to