Fix typos

This commit is contained in:
dgelessus 2019-08-24 23:38:07 +02:00
parent 8904f6e093
commit 3e28fa7fe0
2 changed files with 2 additions and 2 deletions

View File

@ -123,7 +123,7 @@ Version 1.2.0 (next version)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
* Added support for compressed resources.
* Compressed resource data is automatically decompressed, both in the Python API and on the command like.
* Compressed resource data is automatically decompressed, both in the Python API and on the command line.
* This is technically a breaking change, since in previous versions the compressed resource data was returned directly. However, this change will not affect end users negatively, unless one has already implemented custom handling for compressed resources.
* Currently, only one of the two standard Mac OS resource compression format is supported. Attempting to access a resource compressed in an unsupported format results in a ``DecompressError``.
* To access the raw resource data as stored in the file, without automatic decompression, use the ``res.data_raw`` attribute (for the Python API), or the ``--no-decompress`` option (for the command-line interface). This can be used to read the resource data in its compressed form, even if the compression format is not supported.

View File

@ -107,7 +107,7 @@ def decompress(data: bytes, decompressed_length: int, *, debug: bool=False) -> b
decompressed += literal
elif byte in range(0x4b, 0xfe):
# Reference into a fixed table of two-byte literals.
# All compressed resource use the same table.
# All compressed resources use the same table.
table_index = byte - 0x4b
i += 1
if debug: