Skip to content

Commit 9d1490c

Browse files
authored
Merge pull request #203 from pycompression/fix3.13
Inherit READ, WRITE values from gzip library
2 parents 282175a + ec6f1ab commit 9d1490c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.rst

+5
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ Changelog
77
.. This document is user facing. Please word the changes in such a way
88
.. that users understand how the changes affect the new version.
99
10+
version 1.7.0-dev
11+
-----------------
12+
+ Fix a bug where READ and WRITE in isal.igzip were inconsistent with the
13+
values in gzip on Python 3.13
14+
1015
version 1.6.1
1116
-----------------
1217
+ Fix a bug where streams that were passed to igzip_threaded.open where closed.

src/isal/igzip.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@
5555
READ_BUFFER_SIZE = 512 * 1024
5656

5757
FTEXT, FHCRC, FEXTRA, FNAME, FCOMMENT = 1, 2, 4, 8, 16
58-
READ, WRITE = 1, 2
58+
READ = gzip.READ
59+
WRITE = gzip.WRITE
5960

6061
BadGzipFile = gzip.BadGzipFile # type: ignore
6162

0 commit comments

Comments
 (0)