mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-09 09:05:23 +08:00
Run 'black' on gdb
Running 'black' on gdb fixed a couple of small issues. This patch is the result.
This commit is contained in:
gdb
@ -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)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user