Skip to content

Commit

Permalink
Fix extract_blocks.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mhx committed Oct 29, 2022
1 parent 0b060a5 commit 8ed2fce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/extract_blocks.py
Expand Up @@ -50,13 +50,13 @@
"<6sBB32s8sLHHQ", header
)
if ident != b"DWARFS":
printf(f"error: expected dwarfs header")
print(f"error: expected dwarfs header")
raise SystemExit(1)
if sectype not in sectypes:
printf(f"error: unexpected section type ({sectype})")
print(f"error: unexpected section type ({sectype})")
raise SystemExit(1)
if compalg not in compalgs:
printf(f"error: unexpected compression algorithm ({compalg})")
print(f"error: unexpected compression algorithm ({compalg})")
raise SystemExit(1)
print(
f"{ident.decode('ascii')} v{major}.{minor} [{secno}] {sectypes[sectype]} ({compalgs[compalg]}) {blocklen} bytes"
Expand Down

0 comments on commit 8ed2fce

Please sign in to comment.