aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/lib
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-07-14 12:39:56 -0600
committerTom Tromey <tromey@adacore.com>2022-07-15 07:55:32 -0600
commitbf4d777d39da152371dec9df08db1ef4179f7ad9 (patch)
tree5588dc287f1eec1b8455c8045d13354c30b1cc16 /gdb/python/lib
parent9afca381e2e46ccee433ce09001506e7683b273f (diff)
downloadbinutils-bf4d777d39da152371dec9df08db1ef4179f7ad9.zip
binutils-bf4d777d39da152371dec9df08db1ef4179f7ad9.tar.gz
binutils-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/python/lib')
-rw-r--r--gdb/python/lib/gdb/__init__.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/python/lib/gdb/__init__.py b/gdb/python/lib/gdb/__init__.py
index 9e9978e..5b10e3e 100644
--- a/gdb/python/lib/gdb/__init__.py
+++ b/gdb/python/lib/gdb/__init__.py
@@ -30,7 +30,8 @@ from _gdb import *
# Historically, gdb.events was always available, so ensure it's
# still available without an explicit import.
import _gdbevents as events
-sys.modules['gdb.events'] = events
+
+sys.modules["gdb.events"] = events
class _GdbFile(object):
@@ -243,9 +244,9 @@ def set_parameter(name, value):
# can return them, but they can't be passed to 'set' this way.
if isinstance(value, bool):
if value:
- value = 'on'
+ value = "on"
else:
- value = 'off'
+ value = "off"
execute("set " + name + " " + str(value), to_string=True)