diff options
author | Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | 2024-02-19 14:08:31 +0100 |
---|---|---|
committer | Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | 2024-02-19 14:08:31 +0100 |
commit | d0446acf3d465b94b3cbdbf10aee8d3d5cafe8c5 (patch) | |
tree | 38a089caa5ca19c2784c32869cb7bb059fb95916 /gdb/testsuite/gdb.python/py-cmd-exception.py | |
parent | f87eaf8ff3995a5888c6dc4996a20c770e6bcd36 (diff) | |
download | binutils-d0446acf3d465b94b3cbdbf10aee8d3d5cafe8c5.zip binutils-d0446acf3d465b94b3cbdbf10aee8d3d5cafe8c5.tar.gz binutils-d0446acf3d465b94b3cbdbf10aee8d3d5cafe8c5.tar.bz2 |
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.
Diffstat (limited to 'gdb/testsuite/gdb.python/py-cmd-exception.py')
-rw-r--r-- | gdb/testsuite/gdb.python/py-cmd-exception.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.python/py-cmd-exception.py b/gdb/testsuite/gdb.python/py-cmd-exception.py index e44b184..d37257d 100644 --- a/gdb/testsuite/gdb.python/py-cmd-exception.py +++ b/gdb/testsuite/gdb.python/py-cmd-exception.py @@ -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() |