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 024362f413dbfcf8188003762c9cc299f274d76e...48fec8f9fd6fd19426943f0daf3eb6fcaf6fe8f0 lldb/test/API/functionalities/json/object-file/TestObjectFileJSON.py `````````` </details> <details> <summary> View the diff from darker here. </summary> ``````````diff --- TestObjectFileJSON.py 2025-03-07 23:29:50.000000 +0000 +++ TestObjectFileJSON.py 2025-03-07 23:33:27.931147 +0000 @@ -78,13 +78,13 @@ "user_id": 0x100, "name": "__PAGEZERO", "type": "container", "address": 0, "size": 0x100000000, - "flags": 0x101 - }, - { + "flags": 0x101, + }, + { "user_id": 0x200, "name": "__TEXT", "type": "container", "address": TEXT_file_addr, "size": TEXT_size, @@ -107,24 +107,24 @@ }, { "name": "__fake", "address": TEXT_file_addr + 1 * text_size, "size": text_size, - "fake": True + "fake": True, }, { "name": "__encrypted", "address": TEXT_file_addr + 2 * text_size, "size": text_size, - "encrypted": True + "encrypted": True, }, { "name": "__tls", "address": TEXT_file_addr + 2 * text_size, "size": text_size, - "thread_specific": True - } + "thread_specific": True, + }, ], }, { "name": "__DATA", "type": "data", @@ -220,20 +220,22 @@ self.assertEqual(bar_symbol.addr.GetFileAddress(), bar_file_addr) self.assertEqual(bar_symbol.GetSize(), bar_size) # Verify the user_ids and flags are set correctly since there is no API # for this on lldb.SBSection - self.expect("target modules dump sections c.json", - substrs = [ + self.expect( + "target modules dump sections c.json", + substrs=[ "0x0000000000000100 container [0x0000000000000000-0x0000000100000000) --- 0x00000000 0x00000000 0x00000101 c.json.__PAGEZERO", "0x0000000000000200 container [0x0000000100000000-0x0000000100000222) r-x 0x00000000 0x00000222 0x00000202 c.json.__TEXT", "0x0000000000000001 code [0x0000000100000000-0x0000000100000020) r-x 0x00000000 0x00000000 0x00000000 c.json.__TEXT.__text", "0x0000000000000002 code [0x0000000100000020-0x0000000100000040) --- 0x00000000 0x00000000 0x00000000 c.json.__TEXT.__fake", "0x0000000000000003 code [0x0000000100000040-0x0000000100000060) --- 0x00000000 0x00000000 0x00000000 c.json.__TEXT.__encrypted", "0x0000000000000004 code [0x0000000100000040-0x0000000100000060) --- 0x00000000 0x00000000 0x00000000 c.json.__TEXT.__tls", - "0x0000000000000005 data [0x0000000100001000-0x0000000100001333) rw- 0x00001000 0x00000333 0x00000303 c.json.__DATA" - ]) + "0x0000000000000005 data [0x0000000100001000-0x0000000100001333) rw- 0x00001000 0x00000333 0x00000303 c.json.__DATA", + ], + ) error = target.SetSectionLoadAddress(TEXT_section, TEXT_file_addr + slide) self.assertSuccess(error) error = target.SetSectionLoadAddress(DATA_section, DATA_file_addr + slide) self.assertSuccess(error) `````````` </details> https://github.com/llvm/llvm-project/pull/129916 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits