diff --git a/scripts/west_commands/runners/blackmagicprobe.py b/scripts/west_commands/runners/blackmagicprobe.py index 64b565dcf0c..1544d9737b7 100644 --- a/scripts/west_commands/runners/blackmagicprobe.py +++ b/scripts/west_commands/runners/blackmagicprobe.py @@ -13,7 +13,7 @@ class BlackMagicProbeRunner(ZephyrBinaryRunner): '''Runner front-end for Black Magic probe.''' def __init__(self, cfg, gdb_serial): - super(BlackMagicProbeRunner, self).__init__(cfg) + super().__init__(cfg) self.gdb = [cfg.gdb] if cfg.gdb else None self.elf_file = cfg.elf_file self.gdb_serial = gdb_serial diff --git a/scripts/west_commands/runners/bossac.py b/scripts/west_commands/runners/bossac.py index 17d4c7feaf9..6f0062b1afa 100644 --- a/scripts/west_commands/runners/bossac.py +++ b/scripts/west_commands/runners/bossac.py @@ -16,7 +16,7 @@ class BossacBinaryRunner(ZephyrBinaryRunner): def __init__(self, cfg, bossac='bossac', port=DEFAULT_BOSSAC_PORT, offset=None): - super(BossacBinaryRunner, self).__init__(cfg) + super().__init__(cfg) self.bossac = bossac self.port = port self.offset = offset diff --git a/scripts/west_commands/runners/canopen_program.py b/scripts/west_commands/runners/canopen_program.py index 49ba6095cd9..3dc02e0a67f 100644 --- a/scripts/west_commands/runners/canopen_program.py +++ b/scripts/west_commands/runners/canopen_program.py @@ -47,7 +47,7 @@ class CANopenBinaryRunner(ZephyrBinaryRunner): "see the getting started guide for details on " "how to fix") - super(CANopenBinaryRunner, self).__init__(cfg) + super().__init__(cfg) self.bin_file = cfg.bin_file self.confirm = confirm self.confirm_only = confirm_only diff --git a/scripts/west_commands/runners/dediprog.py b/scripts/west_commands/runners/dediprog.py index 3f2e9dd52f0..ed438c46d9a 100644 --- a/scripts/west_commands/runners/dediprog.py +++ b/scripts/west_commands/runners/dediprog.py @@ -17,7 +17,7 @@ class DediProgBinaryRunner(ZephyrBinaryRunner): '''Runner front-end for DediProg (dpcmd).''' def __init__(self, cfg, spi_image, vcc, retries): - super(DediProgBinaryRunner, self).__init__(cfg) + super().__init__(cfg) self.spi_image = spi_image self.vcc = vcc self.dpcmd_retries = retries diff --git a/scripts/west_commands/runners/dfu.py b/scripts/west_commands/runners/dfu.py index f69f176395e..6a43e33f259 100644 --- a/scripts/west_commands/runners/dfu.py +++ b/scripts/west_commands/runners/dfu.py @@ -20,7 +20,7 @@ class DfuUtilBinaryRunner(ZephyrBinaryRunner): def __init__(self, cfg, pid, alt, img, exe='dfu-util', dfuse_config=None): - super(DfuUtilBinaryRunner, self).__init__(cfg) + super().__init__(cfg) self.alt = alt self.img = img self.cmd = [exe, '-d,{}'.format(pid)] diff --git a/scripts/west_commands/runners/esp32.py b/scripts/west_commands/runners/esp32.py index 375aa1e63f1..6b1d062f8dd 100644 --- a/scripts/west_commands/runners/esp32.py +++ b/scripts/west_commands/runners/esp32.py @@ -17,7 +17,7 @@ class Esp32BinaryRunner(ZephyrBinaryRunner): def __init__(self, cfg, device, baud=921600, flash_size='detect', flash_freq='40m', flash_mode='dio', espidf='espidf', bootloader_bin=None, partition_table_bin=None): - super(Esp32BinaryRunner, self).__init__(cfg) + super().__init__(cfg) self.elf = cfg.elf_file self.device = device self.baud = baud diff --git a/scripts/west_commands/runners/hifive1.py b/scripts/west_commands/runners/hifive1.py index 4eb95114d9d..5457cd8918e 100644 --- a/scripts/west_commands/runners/hifive1.py +++ b/scripts/west_commands/runners/hifive1.py @@ -13,7 +13,7 @@ class HiFive1BinaryRunner(ZephyrBinaryRunner): '''Runner front-end for the HiFive1 board, using openocd.''' def __init__(self, cfg): - super(HiFive1BinaryRunner, self).__init__(cfg) + super().__init__(cfg) self.openocd_config = path.join(cfg.board_dir, 'support', 'openocd.cfg') @classmethod diff --git a/scripts/west_commands/runners/intel_s1000.py b/scripts/west_commands/runners/intel_s1000.py index 7d824b32ba8..14b716b00ff 100644 --- a/scripts/west_commands/runners/intel_s1000.py +++ b/scripts/west_commands/runners/intel_s1000.py @@ -19,7 +19,7 @@ class IntelS1000BinaryRunner(ZephyrBinaryRunner): def __init__(self, cfg, xt_ocd_dir, ocd_topology, ocd_jtag_instr, gdb_flash_file, gdb_port=DEFAULT_XT_GDB_PORT): - super(IntelS1000BinaryRunner, self).__init__(cfg) + super().__init__(cfg) self.board_dir = cfg.board_dir self.elf_name = cfg.elf_file self.gdb_cmd = cfg.gdb diff --git a/scripts/west_commands/runners/jlink.py b/scripts/west_commands/runners/jlink.py index 87cfd8e212c..8a5fd36522b 100644 --- a/scripts/west_commands/runners/jlink.py +++ b/scripts/west_commands/runners/jlink.py @@ -30,7 +30,7 @@ class JLinkBinaryRunner(ZephyrBinaryRunner): iface='swd', speed='auto', gdbserver='JLinkGDBServer', gdb_port=DEFAULT_JLINK_GDB_PORT, tui=False, tool_opt=[]): - super(JLinkBinaryRunner, self).__init__(cfg) + super().__init__(cfg) self.bin_name = cfg.bin_file self.elf_name = cfg.elf_file self.gdb_cmd = [cfg.gdb] if cfg.gdb else None diff --git a/scripts/west_commands/runners/mdb.py b/scripts/west_commands/runners/mdb.py index d51f2fda591..be53a24ff37 100644 --- a/scripts/west_commands/runners/mdb.py +++ b/scripts/west_commands/runners/mdb.py @@ -15,7 +15,7 @@ class MdbBinaryRunner(ZephyrBinaryRunner): def __init__(self, cfg, cores=1, jtag='digilent', nsim_args='', dig_device=''): - super(MdbBinaryRunner, self).__init__(cfg) + super().__init__(cfg) self.jtag = jtag self.cores = int(cores) if nsim_args != '': diff --git a/scripts/west_commands/runners/nios2.py b/scripts/west_commands/runners/nios2.py index 88c75da6ee7..8aa3bc1c07f 100644 --- a/scripts/west_commands/runners/nios2.py +++ b/scripts/west_commands/runners/nios2.py @@ -19,7 +19,7 @@ class Nios2BinaryRunner(ZephyrBinaryRunner): # and CONFIG_INCLUDE_RESET_VECTOR must be disabled." def __init__(self, cfg, quartus_py=None, cpu_sof=None, tui=False): - super(Nios2BinaryRunner, self).__init__(cfg) + super().__init__(cfg) self.hex_name = cfg.hex_file self.elf_name = cfg.elf_file self.cpu_sof = cpu_sof diff --git a/scripts/west_commands/runners/nrfjprog.py b/scripts/west_commands/runners/nrfjprog.py index 6add32a2f96..5eca671911d 100644 --- a/scripts/west_commands/runners/nrfjprog.py +++ b/scripts/west_commands/runners/nrfjprog.py @@ -17,7 +17,7 @@ class NrfJprogBinaryRunner(ZephyrBinaryRunner): def __init__(self, cfg, family, softreset, snr, erase=False, tool_opt=[]): - super(NrfJprogBinaryRunner, self).__init__(cfg) + super().__init__(cfg) self.hex_ = cfg.hex_file self.family = family self.softreset = softreset diff --git a/scripts/west_commands/runners/nsim.py b/scripts/west_commands/runners/nsim.py index 813f1dc19ac..7d242e387b7 100644 --- a/scripts/west_commands/runners/nsim.py +++ b/scripts/west_commands/runners/nsim.py @@ -27,7 +27,7 @@ class NsimBinaryRunner(ZephyrBinaryRunner): tui=False, gdb_port=DEFAULT_ARC_GDB_PORT, props=DEFAULT_PROPS_FILE): - super(NsimBinaryRunner, self).__init__(cfg) + super().__init__(cfg) self.gdb_cmd = [cfg.gdb] + (['-tui'] if tui else []) self.nsim_cmd = ['nsimdrv'] self.gdb_port = gdb_port diff --git a/scripts/west_commands/runners/openocd.py b/scripts/west_commands/runners/openocd.py index 829ec08e242..35a15079b28 100644 --- a/scripts/west_commands/runners/openocd.py +++ b/scripts/west_commands/runners/openocd.py @@ -27,7 +27,7 @@ class OpenOcdBinaryRunner(ZephyrBinaryRunner): tcl_port=DEFAULT_OPENOCD_TCL_PORT, telnet_port=DEFAULT_OPENOCD_TELNET_PORT, gdb_port=DEFAULT_OPENOCD_GDB_PORT): - super(OpenOcdBinaryRunner, self).__init__(cfg) + super().__init__(cfg) if not config: default = path.join(cfg.board_dir, 'support', 'openocd.cfg') diff --git a/scripts/west_commands/runners/pyocd.py b/scripts/west_commands/runners/pyocd.py index ae15175b51a..429698aab63 100644 --- a/scripts/west_commands/runners/pyocd.py +++ b/scripts/west_commands/runners/pyocd.py @@ -22,7 +22,7 @@ class PyOcdBinaryRunner(ZephyrBinaryRunner): gdb_port=DEFAULT_PYOCD_GDB_PORT, telnet_port=DEFAULT_PYOCD_TELNET_PORT, tui=False, board_id=None, daparg=None, frequency=None, tool_opt=None): - super(PyOcdBinaryRunner, self).__init__(cfg) + super().__init__(cfg) self.target_args = ['-t', target] self.pyocd = pyocd diff --git a/scripts/west_commands/runners/stm32flash.py b/scripts/west_commands/runners/stm32flash.py index ed78a61f56c..b281ffb2f38 100644 --- a/scripts/west_commands/runners/stm32flash.py +++ b/scripts/west_commands/runners/stm32flash.py @@ -19,7 +19,7 @@ class Stm32flashBinaryRunner(ZephyrBinaryRunner): def __init__(self, cfg, device, action='write', baud=57600, force_binary=False, start_addr=0, exec_addr=None, serial_mode='8e1', reset=False, verify=False): - super(Stm32flashBinaryRunner, self).__init__(cfg) + super().__init__(cfg) self.device = device self.action = action