From: Thaddeus1499 <104600742+Thaddeus1499@users.noreply.github.com> Date: Mon, 2 May 2022 16:20:30 +0000 (-0400) Subject: gh-92082: contextlib docs: Change aclosing from a class to a function for consistency... X-Git-Tag: v3.11.0b1~129 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=958f21c5cdb3bbbd16fec87164785cff3dacce96;p=thirdparty%2FPython%2Fcpython.git gh-92082: contextlib docs: Change aclosing from a class to a function for consistency (#92155) Signed-off-by: prwatson --- diff --git a/Doc/library/contextlib.rst b/Doc/library/contextlib.rst index 38134c1f1431..84c4ca098c60 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::