From 66b8e6c7b8d3c137029f4f2ab8c5b798aa1cbdd7 Mon Sep 17 00:00:00 2001 From: Andrew Burgess Date: Tue, 16 May 2023 11:59:45 +0100 Subject: [PATCH] gdb/testsuite: fix formatting of gdb.python/py-disasm.py Run black on gdb.python/py-disasm.py file and commit the changes. --- gdb/testsuite/gdb.python/py-disasm.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.30.2