Skip to content

Commit 821c38e

Browse files
restyled-commitswy-hh
authored andcommitted
Restyled by autopep8
1 parent efaebfe commit 821c38e

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

scripts/flashing/bouffalolab_firmware_utils.py

-2
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,6 @@ def exe_gen_ota_image_cmd(flashtool_exe):
447447
new_name = os.path.join(self.work_dir, "ota_images", fw_name + ota_img_name[len("FW_OTA"):])
448448
os.system("mv {} {}".format(img, new_name))
449449

450-
451450
def construct_prog_confg():
452451

453452
iot_cfg = {
@@ -508,7 +507,6 @@ def construct_prog_confg():
508507

509508
return conf_toml
510509

511-
512510
def exe_prog_cmd(flashtool_exe, mfd_addr, flashtool_path):
513511

514512
if not self.args["port"]:

scripts/tools/bouffalolab/generate_factory_data.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def gen_cd(chip_cert, paa_cert, dac_vendor_id, dac_product_id, vendor_id, produc
258258
]
259259

260260
if paa_cert:
261-
cmd += [ "--authorized-paa-cert", paa_cert ]
261+
cmd += ["--authorized-paa-cert", paa_cert]
262262

263263
log.info("Generate CD: {}".format(shlex.join(cmd)))
264264
subprocess.run(cmd)
@@ -507,7 +507,7 @@ def hex_to_int(hex_string):
507507

508508
log.basicConfig(format='[%(levelname)s] %(message)s', level=log.INFO)
509509

510-
print (args.dac_pid)
510+
print(args.dac_pid)
511511
check_arg(args)
512512

513513
passcode = gen_test_passcode(args.passcode)

0 commit comments

Comments
 (0)