python-rsrcfork/rsrcfork
dgelessus 6559cbc337 Refactor .dcmp2 to be stream-based
This is a little more complex than with the other decompressors,
because .dcmp2 has to behave differently when at the byte before EOF.
Checking whether this is the case requires lookahead, which is not easy
to do with a plain IO stream.

Some buffered IO streams provide a peek method for lookahead, but
others don't (such as io.BytesIO). There is no standard way to wrap an
already buffered IO stream to add a peek method, so we need a custom
wrapper class and helper function for this purpose.
2019-10-02 10:26:03 +02:00
..
compress Refactor .dcmp2 to be stream-based 2019-10-02 10:26:03 +02:00
__init__.py Bump version to 1.4.1.dev 2019-09-29 19:27:43 +02:00
__main__.py Remove leading underscores where they don't make much sense 2019-10-01 21:26:41 +02:00
api.py Fix more issues reported by mypy 2019-09-29 16:28:07 +02:00