From d0446acf3d465b94b3cbdbf10aee8d3d5cafe8c5 Mon Sep 17 00:00:00 2001 From: Tankut Baris Aktemur Date: Mon, 19 Feb 2024 14:08:31 +0100 Subject: testsuite, python: reformat python files using black In the recent patch titled "gdb, python: selectively omit enabling stdin in gdb.execute", the black tool found formatting issues. Fix them. --- gdb/testsuite/gdb.python/py-cmd-prompt.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'gdb/testsuite/gdb.python/py-cmd-prompt.py') diff --git a/gdb/testsuite/gdb.python/py-cmd-prompt.py b/gdb/testsuite/gdb.python/py-cmd-prompt.py index ac1fdec..b80a0c9 100644 --- a/gdb/testsuite/gdb.python/py-cmd-prompt.py +++ b/gdb/testsuite/gdb.python/py-cmd-prompt.py @@ -15,6 +15,7 @@ import gdb + class MyListener: def __init__(self): gdb.events.new_objfile.connect(self.handle_new_objfile_event) @@ -25,12 +26,13 @@ class MyListener: if self.processed_objfile: return - print('loading ' + event.new_objfile.filename) + print("loading " + event.new_objfile.filename) self.processed_objfile = True - gdb.execute('add-inferior -no-connection') - gdb.execute('inferior 2') - gdb.execute('target remote ' + self.port) - gdb.execute('inferior 1') + gdb.execute("add-inferior -no-connection") + gdb.execute("inferior 2") + gdb.execute("target remote " + self.port) + gdb.execute("inferior 1") + the_listener = MyListener() -- cgit v1.1