Fix misplaced parens in dcmp modules

This commit is contained in:
dgelessus 2019-09-29 15:33:14 +02:00
parent 29ddd21740
commit 0ac6e8a3c4
3 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ def decompress(header_info: common.CompressedHeaderInfo, data: bytes, *, debug:
"""Decompress compressed data in the format used by 'dcmp' (0)."""
if not isinstance(header_info, common.CompressedApplicationHeaderInfo):
raise common.DecompressError(f"Incorrect header type: {type(header_info.__qualname__)}")
raise common.DecompressError(f"Incorrect header type: {type(header_info).__qualname__}")
prev_literals = []
decompressed = b""

View File

@ -23,7 +23,7 @@ def decompress(header_info: common.CompressedHeaderInfo, data: bytes, *, debug:
"""Decompress compressed data in the format used by 'dcmp' (1)."""
if not isinstance(header_info, common.CompressedApplicationHeaderInfo):
raise common.DecompressError(f"Incorrect header type: {type(header_info.__qualname__)}")
raise common.DecompressError(f"Incorrect header type: {type(header_info).__qualname__}")
prev_literals = []
decompressed = b""

View File

@ -135,7 +135,7 @@ def decompress(header_info: common.CompressedHeaderInfo, data: bytes, *, debug:
"""Decompress compressed data in the format used by 'dcmp' (2)."""
if not isinstance(header_info, common.CompressedSystemHeaderInfo):
raise common.DecompressError(f"Incorrect header type: {type(header_info.__qualname__)}")
raise common.DecompressError(f"Incorrect header type: {type(header_info).__qualname__}")
unknown, table_count_m1, flags_raw = STRUCT_PARAMETERS.unpack(header_info.parameters)