]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] gh-100160: Tweak the documentation for the default asyncio policy (GH-100969)
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 13 Jan 2023 08:15:23 +0000 (10:15 +0200)
committerGitHub <noreply@github.com>
Fri, 13 Jan 2023 08:15:23 +0000 (10:15 +0200)
Doc/library/asyncio-policy.rst

index eb043b3e5e7f586f3e9a51e1fab5aab5b1c8f35a..f846f76ca095f4f9106d7f7e451645142ab877b7 100644 (file)
@@ -113,9 +113,9 @@ asyncio ships with the following built-in policies:
       On Windows, :class:`ProactorEventLoop` is now used by default.
 
    .. note::
-      In Python versions 3.10.9, 3.11.1 and 3.12 this function emits a
-      :exc:`DeprecationWarning` if there is no running event loop and no
-      current loop is set.
+      In Python versions 3.10.9, 3.11.1 and 3.12 the :meth:`get_event_loop`
+      method of the default asyncio policy emits a :exc:`DeprecationWarning`
+      if there is no running event loop and no current loop is set.
       In some future Python release this will become an error.