]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Doc: fix a rst tag. (GH-26965)
authorJulien Palard <julien@palard.fr>
Wed, 30 Jun 2021 09:31:04 +0000 (11:31 +0200)
committerGitHub <noreply@github.com>
Wed, 30 Jun 2021 09:31:04 +0000 (11:31 +0200)
Doc/library/contextlib.rst

index 7ac3856819593c386d87a71c4bed82f2237e03c5..38f619a66d6d815e7d972ab642ab8663d2497e82 100644 (file)
@@ -515,9 +515,9 @@ Functions and classes provided:
       These context managers may suppress exceptions just as they normally
       would if used directly as part of a :keyword:`with` statement.
 
-      ... versionchanged:: 3.11
-          Raises :exc:`TypeError` instead of :exc:`AttributeError` if *cm*
-          is not a context manager.
+      .. versionchanged:: 3.11
+         Raises :exc:`TypeError` instead of :exc:`AttributeError` if *cm*
+         is not a context manager.
 
    .. method:: push(exit)
 
@@ -589,9 +589,9 @@ Functions and classes provided:
       Similar to :meth:`enter_context` but expects an asynchronous context
       manager.
 
-      ... versionchanged:: 3.11
-          Raises :exc:`TypeError` instead of :exc:`AttributeError` if *cm*
-          is not an asynchronous context manager.
+      .. versionchanged:: 3.11
+         Raises :exc:`TypeError` instead of :exc:`AttributeError` if *cm*
+         is not an asynchronous context manager.
 
    .. method:: push_async_exit(exit)