Skip to content

Commit 281f7ad

Browse files
committed
Require at least 2.0.7 version in source
1 parent f612ebe commit 281f7ad

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

README.rst

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,8 @@ Differences with zlib and gzip modules
120120

121121
.. differences start
122122
123-
+ Compression level 1 zlib_ng has a much worse compression rate than that in
123+
+ Compression level 1 zlib_ng has a worse compression rate than that in
124124
zlib. For other compression levels zlib_ng compresses better.
125-
+ Compression level 1 does not apply requested ``wbits`` correctly. For example
126-
compressing with ``zlib_ng.compress(data, level=1, wbits=-9)`` results in
127-
data that cannot be decompressed with ``zlib_ng.decompress(data, wbits=-9)``
128-
as this will throw an error mentioning invalid window sizes. This is a
129-
bug in the included zlib-ng 2.0.6.
130125
+ ``gzip_ng.open`` returns a class ``GzipNGFile`` instead of ``GzipFile``. Since
131126
there are differences between the compressed ratios between levels, a
132127
difference in naming was chosen to reflect this.

src/zlib_ng/zlib_ngmodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
#include "stdbool.h"
1010
#include "stdint.h"
1111

12-
#if defined(ZLIBNG_VERNUM) && ZLIBNG_VERNUM < 0x02060
13-
#error "At least zlib-ng version 2.0.6 is required"
12+
#if defined(ZLIBNG_VERNUM) && ZLIBNG_VERNUM < 0x02070
13+
#error "At least zlib-ng version 2.0.7 is required"
1414
#endif
1515

1616
#define ENTER_ZLIB(obj) do { \

0 commit comments

Comments
 (0)