From ab9e394dd6658f1933349d17ef36a13c98c44f9c Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Tue, 25 Sep 2018 17:27:10 -0400 Subject: [PATCH] asyncio/docs: Replace Python 4.0 -> 3.10 --- Doc/library/asyncio-task.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst index 7fbfd426dba6c5..5cbdfeff32f565 100644 --- a/Doc/library/asyncio-task.rst +++ b/Doc/library/asyncio-task.rst @@ -271,7 +271,7 @@ Sleeping when the coroutine completes. The *loop* argument is deprecated and scheduled for removal - in Python 4.0. + in Python 3.10. .. _asyncio_example_sleep: @@ -429,7 +429,7 @@ Timeouts If the wait is cancelled, the future *aw* is also cancelled. The *loop* argument is deprecated and scheduled for removal - in Python 4.0. + in Python 3.10. .. _asyncio_example_waitfor: @@ -481,7 +481,7 @@ Waiting Primitives done, pending = await asyncio.wait(aws) The *loop* argument is deprecated and scheduled for removal - in Python 4.0. + in Python 3.10. *timeout* (a float or int), if specified, can be used to control the maximum number of seconds to wait before returning. @@ -857,7 +857,7 @@ Generator-based Coroutines .. note:: Support for generator-based coroutines is **deprecated** and - is scheduled for removal in Python 4.0. + is scheduled for removal in Python 3.10. Generator-based coroutines predate async/await syntax. They are Python generators that use ``yield from`` expressions to await @@ -883,7 +883,7 @@ enforced. await old_style_coroutine() This decorator is **deprecated** and is scheduled for removal in - Python 4.0. + Python 3.10. This decorator should not be used for :keyword:`async def` coroutines.