From a497b44238747b03306f67f8134c20dbf762bfa5 Mon Sep 17 00:00:00 2001 From: Nick Coghlan Date: Tue, 22 May 2012 23:02:00 +1000 Subject: [PATCH] Fix the versionadded tags for a couple of my recent changes --- Doc/library/contextlib.rst | 4 ++-- Doc/library/types.rst | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Doc/library/contextlib.rst b/Doc/library/contextlib.rst index 8cc71b4f39..b1bfa180c0 100644 --- a/Doc/library/contextlib.rst +++ b/Doc/library/contextlib.rst @@ -207,6 +207,8 @@ Functions and classes provided: foundation for higher level context managers that manipulate the exit stack in application specific ways. + .. versionadded:: 3.3 + .. method:: enter_context(cm) Enters a new context manager and adds its :meth:`__exit__` method to @@ -270,8 +272,6 @@ Functions and classes provided: callbacks registered, the arguments passed in will indicate that no exception occurred. - .. versionadded:: 3.3 - Examples and Recipes -------------------- diff --git a/Doc/library/types.rst b/Doc/library/types.rst index bd728d04f8..161d854f2f 100644 --- a/Doc/library/types.rst +++ b/Doc/library/types.rst @@ -30,6 +30,8 @@ Dynamic Type Creation The *exec_body* callback should accept the class namespace as its sole argument and update the namespace directly with the class contents. + .. versionadded:: 3.3 + .. function:: prepare_class(name, bases=(), kwds=None) Calculates the appropriate metaclass and creates the class namespace. @@ -46,6 +48,7 @@ Dynamic Type Creation ``'metaclass'`` entry removed. If no *kwds* argument is passed in, this will be an empty dict. + .. versionadded:: 3.3 .. seealso:: -- 2.40.0