From eb160fabb00fa2c62ab03b7acc9274d3809a95f9 Mon Sep 17 00:00:00 2001 From: prwatson Date: Mon, 2 May 2022 10:58:46 -0400 Subject: [PATCH] Changed a.closing from a class to a function for consistency with docs Signed-off-by: prwatson --- Doc/library/contextlib.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/contextlib.rst b/Doc/library/contextlib.rst index 38134c1f14319f..84c4ca098c6015 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::