]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-92082: contextlib docs: Change aclosing from a class to a function for consistency...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 2 May 2022 16:37:10 +0000 (09:37 -0700)
committerGitHub <noreply@github.com>
Mon, 2 May 2022 16:37:10 +0000 (09:37 -0700)
Signed-off-by: prwatson <prwatson@redhat.com>
(cherry picked from commit 958f21c5cdb3bbbd16fec87164785cff3dacce96)

Co-authored-by: Thaddeus1499 <104600742+Thaddeus1499@users.noreply.github.com>
Doc/library/contextlib.rst

index 0fe3206540e80ddd2ce12534aa2fa753dc2af056..7c0b8314079683d3ac7c278f9ef07ca3f184b2ae 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::