gdb/testsuite: fix formatting of gdb.python/py-disasm.py
authorAndrew Burgess <aburgess@redhat.com>
Tue, 16 May 2023 10:59:45 +0000 (11:59 +0100)
committerAndrew Burgess <aburgess@redhat.com>
Tue, 16 May 2023 10:59:45 +0000 (11:59 +0100)
Run black on gdb.python/py-disasm.py file and commit the changes.

gdb/testsuite/gdb.python/py-disasm.py

index ec6b0e8deca4b8c2886a25b2a059786ef42aca87..67ba6756ea9ee9c4433cde0464a621c249d16d77 100644 (file)
@@ -31,7 +31,7 @@ def builtin_disassemble_wrapper(info):
     assert len(result.parts) > 0
     tmp_str = ""
     for p in result.parts:
-        assert(p.string == str(p))
+        assert p.string == str(p)
         tmp_str += p.string
     assert tmp_str == result.string
     return result
@@ -586,9 +586,9 @@ class All_Text_Part_Styles(TestDisassembler):
         result = builtin_disassemble_wrapper(info)
         result = DisassemblerResult(length=result.length, parts=parts)
 
-        tmp_str = "";
+        tmp_str = ""
         for p in parts:
-            assert (p.string == str(p))
+            assert p.string == str(p)
             tmp_str += str(p)
         assert tmp_str == result.string