gzip and bz2 are context managers
diff --git a/Doc/library/bz2.rst b/Doc/library/bz2.rst
index 7804c54..fa6d762 100644
--- a/Doc/library/bz2.rst
+++ b/Doc/library/bz2.rst
@@ -60,6 +60,11 @@
reading. Instances support iteration in the same way as normal :class:`file`
instances.
+ :class:`BZ2File` supports the :keyword:`with` statement.
+
+ .. versionchanged:: 2.7
+ Support for the :keyword:`with` statement was added.
+
.. method:: close()
diff --git a/Doc/library/gzip.rst b/Doc/library/gzip.rst
index 2be8e05..c76bae8 100644
--- a/Doc/library/gzip.rst
+++ b/Doc/library/gzip.rst
@@ -67,6 +67,11 @@
writing as *fileobj*, and retrieve the resulting memory buffer using the
:class:`StringIO` object's :meth:`getvalue` method.
+ :class:`GzipFile` supports the :keyword:`with` statement.
+
+ .. versionchanged:: 2.7
+ Support for the :keyword:`with` statement was added.
+
.. function:: open(filename[, mode[, compresslevel]])