From: Andrew Burgess Date: Tue, 16 May 2023 10:59:45 +0000 (+0100) Subject: gdb/testsuite: fix formatting of gdb.python/py-disasm.py X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=66b8e6c7b8d3c137029f4f2ab8c5b798aa1cbdd7;p=binutils-gdb.git gdb/testsuite: fix formatting of gdb.python/py-disasm.py Run black on gdb.python/py-disasm.py file and commit the changes. --- diff --git a/gdb/testsuite/gdb.python/py-disasm.py b/gdb/testsuite/gdb.python/py-disasm.py index ec6b0e8deca..67ba6756ea9 100644 --- a/gdb/testsuite/gdb.python/py-disasm.py +++ b/gdb/testsuite/gdb.python/py-disasm.py @@ -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