]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-92082: contextlib docs: Change aclosing from a class to a function for consistency...
authorThaddeus1499 <104600742+Thaddeus1499@users.noreply.github.com>
Mon, 2 May 2022 16:20:30 +0000 (12:20 -0400)
committerGitHub <noreply@github.com>
Mon, 2 May 2022 16:20:30 +0000 (10:20 -0600)
Signed-off-by: prwatson <prwatson@redhat.com>
Doc/library/contextlib.rst

index 38134c1f14319f326553b040b15587269362cea4..84c4ca098c6015482a89a0b1872fa4a8f00a2886 100644 (file)
@@ -181,7 +181,7 @@ Functions and classes provided:
    ``page.close()`` will be called when the :keyword:`with` block is exited.
 
 
-.. class:: aclosing(thing)
+.. function:: aclosing(thing)
 
    Return an async context manager that calls the ``aclose()`` method of *thing*
    upon completion of the block.  This is basically equivalent to::