File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -120,13 +120,8 @@ Differences with zlib and gzip modules
120
120
121
121
.. differences start
122
122
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
124
124
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.
130
125
+ ``gzip_ng.open `` returns a class ``GzipNGFile `` instead of ``GzipFile ``. Since
131
126
there are differences between the compressed ratios between levels, a
132
127
difference in naming was chosen to reflect this.
Original file line number Diff line number Diff line change 9
9
#include "stdbool.h"
10
10
#include "stdint.h"
11
11
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"
14
14
#endif
15
15
16
16
#define ENTER_ZLIB (obj ) do { \
You can’t perform that action at this time.
0 commit comments