diff options
Diffstat (limited to 'Doc/library/gzip.rst')
-rw-r--r-- | Doc/library/gzip.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/gzip.rst b/Doc/library/gzip.rst index 818de6a..1f64428 100644 --- a/Doc/library/gzip.rst +++ b/Doc/library/gzip.rst @@ -24,7 +24,7 @@ For other archive formats, see the :mod:`bz2`, :mod:`zipfile`, and The module defines the following items: -.. class:: GzipFile([filename[, mode[, compresslevel[, fileobj[, mtime]]]]]) +.. class:: GzipFile(filename=None, mode=None, compresslevel=9, fileobj=None, mtime=None) Constructor for the :class:`GzipFile` class, which simulates most of the methods of a file object, with the exception of the :meth:`readinto` and @@ -73,7 +73,7 @@ The module defines the following items: Support for the :keyword:`with` statement was added. -.. function:: open(filename[, mode[, compresslevel]]) +.. function:: open(filename, mode='rb', compresslevel=9) This is a shorthand for ``GzipFile(filename,`` ``mode,`` ``compresslevel)``. The *filename* argument is required; *mode* defaults to ``'rb'`` and |