]> granicus.if.org Git - python/commitdiff
#6803: fix old name.
authorGeorg Brandl <georg@python.org>
Sun, 30 Aug 2009 08:35:01 +0000 (08:35 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 30 Aug 2009 08:35:01 +0000 (08:35 +0000)
Doc/library/stdtypes.rst

index 4b84392e399ab54752cb03b2216cf9d3691eafcc..7e31b63aa45d8a33c4b71eb8b6be75d01a37d6eb 100644 (file)
@@ -2549,9 +2549,9 @@ decimal arithmetic context. The specific types are not treated specially beyond
 their implementation of the context management protocol. See the
 :mod:`contextlib` module for some examples.
 
-Python's :term:`generator`\s and the ``contextlib.contextfactory`` :term:`decorator`
+Python's :term:`generator`\s and the ``contextlib.contextmanager`` :term:`decorator`
 provide a convenient way to implement these protocols.  If a generator function is
-decorated with the ``contextlib.contextfactory`` decorator, it will return a
+decorated with the ``contextlib.contextmanager`` decorator, it will return a
 context manager implementing the necessary :meth:`__enter__` and
 :meth:`__exit__` methods, rather than the iterator produced by an undecorated
 generator function.