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 /Doc/library/gzip.rst | |
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 'Doc/library/gzip.rst')
-rw-r--r-- | Doc/library/gzip.rst | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/library/gzip.rst b/Doc/library/gzip.rst index 9422ea9..abbd018 100644 --- a/Doc/library/gzip.rst +++ b/Doc/library/gzip.rst @@ -50,9 +50,10 @@ The module defines the following items: supported. If you need to read a compressed file in text mode, wrap your :class:`GzipFile` with an :class:`io.TextIOWrapper`. - The *compresslevel* argument is an integer from ``1`` to ``9`` controlling the - level of compression; ``1`` is fastest and produces the least compression, and - ``9`` is slowest and produces the most compression. The default is ``9``. + The *compresslevel* argument is an integer from ``0`` to ``9`` controlling + the level of compression; ``1`` is fastest and produces the least + compression, and ``9`` is slowest and produces the most compression. ``0`` + is no compression. The default is ``9``. The *mtime* argument is an optional numeric timestamp to be written to the stream when compressing. All :program:`gzip` compressed streams are |