diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-09-23 16:45:17 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-09-23 16:45:17 (GMT) |
commit | e5768cf348ec353dff7e3f2144f4e1690a094a64 (patch) | |
tree | 72c3990f06e85ad4d54e1dad2bca61fb60e3b165 /Doc | |
parent | 7b9698435d890b2df5107a6a3efedc1aebc178a3 (diff) | |
download | cpython-e5768cf348ec353dff7e3f2144f4e1690a094a64.zip cpython-e5768cf348ec353dff7e3f2144f4e1690a094a64.tar.gz cpython-e5768cf348ec353dff7e3f2144f4e1690a094a64.tar.bz2 |
Small fixes in the gzip docs
Diffstat (limited to 'Doc')
-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 934fcb3..dc04ba0 100644 --- a/Doc/library/gzip.rst +++ b/Doc/library/gzip.rst @@ -62,11 +62,12 @@ The module defines the following items: Calling a :class:`GzipFile` object's :meth:`close` method does not close *fileobj*, since you might wish to append more material after the compressed - data. This also allows you to pass a :class:`StringIO` object opened for + data. This also allows you to pass a :class:`io.BytesIO` object opened for writing as *fileobj*, and retrieve the resulting memory buffer using the - :class:`StringIO` object's :meth:`getvalue` method. + :class:`io.BytesIO` object's :meth:`~io.BytesIO.getvalue` method. - :class:`GzipFile` supports iteration and the :keyword:`with` statement. + :class:`GzipFile` supports the whole :class:`io.BufferedIOBase` interface, + including iteration and the :keyword:`with` statement. .. versionchanged:: 3.1 Support for the :keyword:`with` statement was added. |