]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] gh-110703: Add asyncio.wait_for() change notes for 3.11 (GH-110818) (#110827)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 13 Oct 2023 13:24:29 +0000 (15:24 +0200)
committerGitHub <noreply@github.com>
Fri, 13 Oct 2023 13:24:29 +0000 (13:24 +0000)
gh-110703: Add asyncio.wait_for() change notes for 3.11 (GH-110818)

* Remove redundant versionchanged

* Add missing versionchanged

* Update Doc/library/asyncio-task.rst

---------

(cherry picked from commit f81e36f700ac8c6766207fcf3bc2540692af868b)

Co-authored-by: paskozdilar <53006174+paskozdilar@users.noreply.github.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Doc/library/asyncio-task.rst

index ef17f384c1bfebdebce349f451e5966a3d495489..0944aef0ab619dfd5aacd9f6a14974fa207c1931 100644 (file)
@@ -714,9 +714,6 @@ Timeouts
 
    If the wait is cancelled, the future *aw* is also cancelled.
 
-   .. versionchanged:: 3.10
-      Removed the *loop* parameter.
-
    .. _asyncio_example_waitfor:
 
    Example::
@@ -747,6 +744,9 @@ Timeouts
    .. versionchanged:: 3.10
       Removed the *loop* parameter.
 
+   .. versionchanged:: 3.11
+      Raises :exc:`TimeoutError` instead of :exc:`asyncio.TimeoutError`.
+
 
 Waiting Primitives
 ==================