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

Skip to content

Commit 958f21c

Browse files
authored
gh-92082: contextlib docs: Change aclosing from a class to a function for consistency (#92155)
Signed-off-by: prwatson <prwatson@redhat.com>
1 parent 84b986b commit 958f21c

File tree

Collapse 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