diff options
author | Nadeem Vawda <nadeem.vawda@gmail.com> | 2012-11-11 13:04:14 (GMT) |
---|---|---|
committer | Nadeem Vawda <nadeem.vawda@gmail.com> | 2012-11-11 13:04:14 (GMT) |
commit | 19e568d254bea8202703302d0ada9bc93f99331a (patch) | |
tree | 74dfb24f4c4a14b1f4ed963a22df688bc1f13abc /Modules | |
parent | 12489d98e692717a93694644dac4975d54106178 (diff) | |
download | cpython-19e568d254bea8202703302d0ada9bc93f99331a.zip cpython-19e568d254bea8202703302d0ada9bc93f99331a.tar.gz cpython-19e568d254bea8202703302d0ada9bc93f99331a.tar.bz2 |
Issue #15677: Document that zlib and gzip accept a compression level of 0 to mean 'no compression'.
Patch by Brian Brazil.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/zlibmodule.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/zlibmodule.c b/Modules/zlibmodule.c index 6a772ad..bb453ae 100644 --- a/Modules/zlibmodule.c +++ b/Modules/zlibmodule.c @@ -81,7 +81,7 @@ zlib_error(z_stream zst, int err, char *msg) PyDoc_STRVAR(compressobj__doc__, "compressobj([level]) -- Return a compressor object.\n" "\n" -"Optional arg level is the compression level, in 1-9."); +"Optional arg level is the compression level, in 0-9."); PyDoc_STRVAR(decompressobj__doc__, "decompressobj([wbits]) -- Return a decompressor object.\n" @@ -115,7 +115,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) @@ -1135,7 +1135,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" |