mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-09 04:21:49 +08:00
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.
This commit is contained in:
parent
f87eaf8ff3
commit
d0446acf3d
@ -15,6 +15,7 @@
|
||||
|
||||
import gdb
|
||||
|
||||
|
||||
class MyListener:
|
||||
def __init__(self):
|
||||
gdb.events.new_objfile.connect(self.handle_new_objfile_event)
|
||||
@ -24,10 +25,11 @@ class MyListener:
|
||||
if self.processed_objfile:
|
||||
return
|
||||
|
||||
print('loading ' + event.new_objfile.filename)
|
||||
print("loading " + event.new_objfile.filename)
|
||||
self.processed_objfile = True
|
||||
|
||||
# There is no variable 'a'. The command raises an exception.
|
||||
gdb.execute('print a')
|
||||
gdb.execute("print a")
|
||||
|
||||
|
||||
the_listener = MyListener()
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user