diff options
author | Christian Clauss <cclauss@me.com> | 2025-02-18 10:01:09 +0100 |
---|---|---|
committer | Christian Clauss <cclauss@me.com> | 2025-02-25 13:02:49 +0100 |
commit | dc2fcfcc5511a371ff684f7d7772e7a7b479246d (patch) | |
tree | 72ba38184b3291afd41200da2a8a482868308a6a /tools/pydfu.py | |
parent | 3f0dd13d931c88a759a779853dfeaee566f0e79a (diff) |
all: Upgrade to ruff v0.9.6.
Signed-off-by: Christian Clauss <cclauss@me.com>
Diffstat (limited to 'tools/pydfu.py')
-rwxr-xr-x | tools/pydfu.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/pydfu.py b/tools/pydfu.py index e1e4074a6..cd7354818 100755 --- a/tools/pydfu.py +++ b/tools/pydfu.py @@ -344,8 +344,7 @@ def read_dfu_file(filename): # B uint8_t targets Number of targets dfu_prefix, data = consume("<5sBIB", data, "signature version size targets") print( - " %(signature)s v%(version)d, image size: %(size)d, " - "targets: %(targets)d" % dfu_prefix + " %(signature)s v%(version)d, image size: %(size)d, targets: %(targets)d" % dfu_prefix ) for target_idx in range(dfu_prefix["targets"]): # Decode the Image Prefix @@ -359,7 +358,7 @@ def read_dfu_file(filename): # I uint32_t size Size of image (without prefix) # I uint32_t elements Number of elements in the image img_prefix, data = consume( - "<6sBI255s2I", data, "signature altsetting named name " "size elements" + "<6sBI255s2I", data, "signature altsetting named name size elements" ) img_prefix["num"] = target_idx if img_prefix["named"]: |