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 HEAD~1...HEAD 
lldb/test/API/macosx/branch-islands/TestBranchIslands.py
``````````

</details>

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

``````````diff
--- TestBranchIslands.py        2025-05-08 21:41:17.000000 +0000
+++ TestBranchIslands.py        2025-05-08 21:59:48.164599 +0000
@@ -39,23 +39,27 @@
         # figure out what went wrong...
         if stop_frame.name.find("foo") == -1:
             stream = lldb.SBStream()
             print("Branch island symbols: ")
             syms[0].GetDescription(stream)
-            for i in range (0,6):
+            for i in range(0, 6):
                 for sep in ["", "."]:
-                    syms = target.FindSymbols(f"foo.island{sep}{i}", 
lldb.eSymbolTypeCode)
+                    syms = target.FindSymbols(
+                        f"foo.island{sep}{i}", lldb.eSymbolTypeCode
+                    )
                     if len(syms) > 0:
                         stream.Print("\n")
                         syms[0].GetDescription(stream)
-                    
+
             print(stream.GetData())
             print(f"Start backtrace:")
             print(trace_before)
             print(f"\n'main' disassembly:\n{lldbutil.disassemble(target, 
func_before)}")
             print("\nEnd backtrace:\n")
             lldbutil.print_stacktrace(thread)
-            print(f"\nStop disassembly:\n {lldbutil.disassemble(target, 
stop_frame.function)}")
-            
+            print(
+                f"\nStop disassembly:\n {lldbutil.disassemble(target, 
stop_frame.function)}"
+            )
+
         self.assertIn("foo", stop_frame.name, "Stepped into foo")
         var = stop_frame.FindVariable("a_variable_in_foo")
         self.assertTrue(var.IsValid(), "Found the variable in foo")

``````````

</details>


https://github.com/llvm/llvm-project/pull/139166
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to