diff options
author | Georg Brandl <georg@python.org> | 2009-05-17 13:00:36 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-05-17 13:00:36 (GMT) |
commit | 036490d025b768c9e69567c3caac63ccd7a62a09 (patch) | |
tree | aeb86dff3b316514ee06be484fe0e482bcd83a12 /Doc/library/gzip.rst | |
parent | cd86925b3bb994a8b2662cbe04be356768df5e86 (diff) | |
download | cpython-036490d025b768c9e69567c3caac63ccd7a62a09.zip cpython-036490d025b768c9e69567c3caac63ccd7a62a09.tar.gz cpython-036490d025b768c9e69567c3caac63ccd7a62a09.tar.bz2 |
More conversion to new-style optional args.
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 |