From 3e28fa7fe00b2ed71e7128829773201219e85334 Mon Sep 17 00:00:00 2001 From: dgelessus Date: Sat, 24 Aug 2019 23:38:07 +0200 Subject: [PATCH] Fix typos --- README.rst | 2 +- rsrcfork/compress/dcmp0.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 752b7f9..43ffdf0 100644 --- a/README.rst +++ b/README.rst @@ -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. diff --git a/rsrcfork/compress/dcmp0.py b/rsrcfork/compress/dcmp0.py index c63cd4b..864c7e9 100644 --- a/rsrcfork/compress/dcmp0.py +++ b/rsrcfork/compress/dcmp0.py @@ -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: