diff options
author | Thaddeus1499 <104600742+Thaddeus1499@users.noreply.github.com> | 2022-05-02 16:20:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-02 16:20:30 (GMT) |
commit | 958f21c5cdb3bbbd16fec87164785cff3dacce96 (patch) | |
tree | 1b2bd01660b9b37d95c14fe76189cfb443bdc5d0 /Doc | |
parent | 84b986ba10d704394aa36955b00e6106ca25e8ba (diff) | |
download | cpython-958f21c5cdb3bbbd16fec87164785cff3dacce96.zip cpython-958f21c5cdb3bbbd16fec87164785cff3dacce96.tar.gz cpython-958f21c5cdb3bbbd16fec87164785cff3dacce96.tar.bz2 |
gh-92082: contextlib docs: Change aclosing from a class to a function for consistency (#92155)
Signed-off-by: prwatson <prwatson@redhat.com>
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/contextlib.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/contextlib.rst b/Doc/library/contextlib.rst index 38134c1..84c4ca0 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:: |