summaryrefslogtreecommitdiffstats
path: root/Modules/zlibmodule.c
diff options
context:
space:
mode:
authorNadeem Vawda <nadeem.vawda@gmail.com>2012-11-11 13:14:47 (GMT)
committerNadeem Vawda <nadeem.vawda@gmail.com>2012-11-11 13:14:47 (GMT)
commit6ff262e18f7178b22b3cc6300d05a8cb008865d2 (patch)
treea536473c275798144982da06e42654c9fd7d3f13 /Modules/zlibmodule.c
parentc8ac03d936fd9fa7b48c0aaac01b66e8d8fcf766 (diff)
parent19e568d254bea8202703302d0ada9bc93f99331a (diff)
downloadcpython-6ff262e18f7178b22b3cc6300d05a8cb008865d2.zip
cpython-6ff262e18f7178b22b3cc6300d05a8cb008865d2.tar.gz
cpython-6ff262e18f7178b22b3cc6300d05a8cb008865d2.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/zlibmodule.c')
-rw-r--r--Modules/zlibmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/zlibmodule.c b/Modules/zlibmodule.c
index 5a57fe9..e718795 100644
--- a/Modules/zlibmodule.c
+++ b/Modules/zlibmodule.c
@@ -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"