mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Issue #15677: Document that zlib and gzip accept a compression level of 0 to mean 'no compression'.
Patch by Brian Brazil.
This commit is contained in:
commit
6ff262e18f
5 changed files with 20 additions and 14 deletions
|
|
@ -139,7 +139,7 @@ newcompobject(PyTypeObject *type)
|
|||
PyDoc_STRVAR(compress__doc__,
|
||||
"compress(string[, level]) -- Returned compressed string.\n"
|
||||
"\n"
|
||||
"Optional arg level is the compression level, in 1-9.");
|
||||
"Optional arg level is the compression level, in 0-9.");
|
||||
|
||||
static PyObject *
|
||||
PyZlib_compress(PyObject *self, PyObject *args)
|
||||
|
|
@ -1227,7 +1227,7 @@ PyDoc_STRVAR(zlib_module_documentation,
|
|||
"zlib library, which is based on GNU zip.\n"
|
||||
"\n"
|
||||
"adler32(string[, start]) -- Compute an Adler-32 checksum.\n"
|
||||
"compress(string[, level]) -- Compress string, with compression level in 1-9.\n"
|
||||
"compress(string[, level]) -- Compress string, with compression level in 0-9.\n"
|
||||
"compressobj([level[, ...]]) -- Return a compressor object.\n"
|
||||
"crc32(string[, start]) -- Compute a CRC-32 checksum.\n"
|
||||
"decompress(string,[wbits],[bufsize]) -- Decompresses a compressed string.\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue