summaryrefslogtreecommitdiff
path: root/Doc/library/gzip.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-05-17 13:00:36 +0000
committerGeorg Brandl <georg@python.org>2009-05-17 13:00:36 +0000
commit036490d025b768c9e69567c3caac63ccd7a62a09 (patch)
treeaeb86dff3b316514ee06be484fe0e482bcd83a12 /Doc/library/gzip.rst
parentcd86925b3bb994a8b2662cbe04be356768df5e86 (diff)
downloadcpython-git-036490d025b768c9e69567c3caac63ccd7a62a09.tar.gz
More conversion to new-style optional args.
Diffstat (limited to 'Doc/library/gzip.rst')
-rw-r--r--Doc/library/gzip.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/gzip.rst b/Doc/library/gzip.rst
index 818de6ac2b..1f644286c9 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