diff options
author | Tom Tromey <tromey@adacore.com> | 2022-07-14 12:39:56 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2022-07-15 07:55:32 -0600 |
commit | bf4d777d39da152371dec9df08db1ef4179f7ad9 (patch) | |
tree | 5588dc287f1eec1b8455c8045d13354c30b1cc16 /gdb/testsuite | |
parent | 9afca381e2e46ccee433ce09001506e7683b273f (diff) | |
download | gdb-bf4d777d39da152371dec9df08db1ef4179f7ad9.zip gdb-bf4d777d39da152371dec9df08db1ef4179f7ad9.tar.gz gdb-bf4d777d39da152371dec9df08db1ef4179f7ad9.tar.bz2 |
Run 'black' on gdb
Running 'black' on gdb fixed a couple of small issues. This patch is
the result.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/gdb.python/py-send-packet.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.python/py-send-packet.py b/gdb/testsuite/gdb.python/py-send-packet.py index ae70b85..26deeb1 100644 --- a/gdb/testsuite/gdb.python/py-send-packet.py +++ b/gdb/testsuite/gdb.python/py-send-packet.py @@ -114,10 +114,12 @@ def check_global_var(expected_val): if val != expected_val: raise gdb.GdbError("global_var is 0x%x, expected 0x%x" % (val, expected_val)) + # Return a bytes object representing an 'X' packet header with # address ADDR. -def xpacket_header (addr): - return ("X%x,4:" % addr).encode('ascii') +def xpacket_header(addr): + return ("X%x,4:" % addr).encode("ascii") + # Set the 'X' packet to the remote target to set a global variable. # Checks that we can send byte values. |