Skip to content

Commit

Permalink
Reformat long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
tuokri committed Jan 19, 2022
1 parent ccff055 commit f46e373
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,10 @@ def main():
meta = memory_bnk_meta_file2metadata[orig_bnk_file]

if len(decode_info) != len(meta):
logbook.error("decode_info and meta length mismatch: {len1} != {len2} for bnk: '{bnk}'",
len1=len(decode_info), len2=len(meta), bnk=orig_bnk_file)
logbook.error("decode_info and meta length mismatch: "
"{len1} != {len2} for bnk: '{bnk}'",
len1=len(decode_info), len2=len(meta),
bnk=orig_bnk_file)
# print(decode_info)
# print(meta)
continue
Expand All @@ -446,7 +448,8 @@ def main():
for m, (decoded_stem, decoded_size) in zip(meta, decode_info.items()):
if m.data_size != decoded_size:
# raise ValueError(f"{m.data_size} != {decoded_size}")
logbook.error("metadata size and decoded data size length mismatch: {len1} != {len2}",
logbook.error("metadata size and decoded data size length mismatch: "
"{len1} != {len2}",
len1=m.data_size, len2=decoded_size)
continue
decoded_file2metas[decoded_stem] = m
Expand Down

0 comments on commit f46e373

Please sign in to comment.