Skip to content

Inherit READ, WRITE values from gzip library #203

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ Changelog
.. This document is user facing. Please word the changes in such a way
.. that users understand how the changes affect the new version.

version 1.7.0-dev
-----------------
+ Fix a bug where READ and WRITE in isal.igzip were inconsistent with the
values in gzip on Python 3.13

version 1.6.1
-----------------
+ Fix a bug where streams that were passed to igzip_threaded.open where closed.
Expand Down
3 changes: 2 additions & 1 deletion src/isal/igzip.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@
READ_BUFFER_SIZE = 512 * 1024

FTEXT, FHCRC, FEXTRA, FNAME, FCOMMENT = 1, 2, 4, 8, 16
READ, WRITE = 1, 2
READ = gzip.READ
WRITE = gzip.WRITE

BadGzipFile = gzip.BadGzipFile # type: ignore

Expand Down
Loading