Skip to content

Commit

Permalink
Doc: fix a rst tag. (pythonGH-26965)
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienPalard committed Jun 30, 2021
1 parent 1d08d85 commit 86eeeb4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Doc/library/contextlib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 86eeeb4

Please sign in to comment.