[Python-checkins] gh-92082: contextlib docs: Change aclosing from a class to a function for consistency (GH-92155)

miss-islington webhook-mailer at python.org
Mon May 2 12:37:20 EDT 2022


https://github.com/python/cpython/commit/0e9927b6b008ff7537600cec4f91169a006d0c9d
commit: 0e9927b6b008ff7537600cec4f91169a006d0c9d
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-05-02T09:37:10-07:00
summary:

gh-92082: contextlib docs: Change aclosing from a class to a function for consistency (GH-92155)


Signed-off-by: prwatson <prwatson at redhat.com>
(cherry picked from commit 958f21c5cdb3bbbd16fec87164785cff3dacce96)

Co-authored-by: Thaddeus1499 <104600742+Thaddeus1499 at users.noreply.github.com>

files:
M Doc/library/contextlib.rst

diff --git a/Doc/library/contextlib.rst b/Doc/library/contextlib.rst
index 0fe3206540e80..7c0b831407968 100644
--- a/Doc/library/contextlib.rst
+++ b/Doc/library/contextlib.rst
@@ -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::



More information about the Python-checkins mailing list