Skip to content

Commit 1c9e979

Browse files
authored
Merge pull request #45 from musicinmybrain/py313
Use values of READ and WRITE from the gzip module
2 parents 5e5f1be + 04ff498 commit 1c9e979

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-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 0.5.0-dev
11+
-----------------
12+
+ Fix a bug where READ and WRITE in zlib_ng.gzip_ng were inconsistent with the
13+
values in gzip on Python 3.13
14+
1015
version 0.4.3
1116
-----------------
1217
+ Fix a bug where files larger than 4GB could not be decompressed.

src/zlib_ng/gzip_ng.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
READ_BUFFER_SIZE = 512 * 1024
4242

4343
FTEXT, FHCRC, FEXTRA, FNAME, FCOMMENT = 1, 2, 4, 8, 16
44-
READ, WRITE = 1, 2
44+
READ, WRITE = gzip.READ, gzip.WRITE
4545

4646
BadGzipFile = gzip.BadGzipFile # type: ignore
4747

0 commit comments

Comments
 (0)