10000 gh-92082: contextlib docs: Change aclosing from a class to a function… · python/cpython@0e9927b · GitHub
[go: up one dir, main page]

Skip to content

Commit 0e9927b

Browse files
gh-92082: contextlib docs: Change aclosing from a class to a function for consistency (GH-92155)
Signed-off-by: prwatson <prwatson@redhat.com> (cherry picked from commit 958f21c) Co-authored-by: Thaddeus1499 <104600742+Thaddeus1499@users.noreply.github.com>
1 parent 178d79a commit 0e9927b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/contextlib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ Functions and classes provided:
181181
``page.close()`` will be called when the :keyword:`with` block is exited.
182182

183183

184-
.. class:: aclosing(thing)
184+
.. function:: aclosing(thing)
185185

186186
Return an async context manager that calls the ``aclose()`` method of *thing*
187187
upon completion of the block. This is basically equivalent to::

0 commit comments

Comments
 (0)
0