[Python-checkins] gh-92082: contextlib docs: Change aclosing from a class to a function for consistency (#92155)
JelleZijlstra
webhook-mailer at python.org
Mon May 2 12:20:44 EDT 2022
https://github.com/python/cpython/commit/958f21c5cdb3bbbd16fec87164785cff3dacce96
commit: 958f21c5cdb3bbbd16fec87164785cff3dacce96
branch: main
author: Thaddeus1499 <104600742+Thaddeus1499 at users.noreply.github.com>
committer: JelleZijlstra <jelle.zijlstra at gmail.com>
date: 2022-05-02T10:20:30-06:00
summary:
gh-92082: contextlib docs: Change aclosing from a class to a function for consistency (#92155)
Signed-off-by: prwatson <prwatson at redhat.com>
files:
M Doc/library/contextlib.rst
diff --git a/Doc/library/contextlib.rst b/Doc/library/contextlib.rst
index 38134c1f14319..84c4ca098c601 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::
More information about the Python-checkins
mailing list