mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
asyncio/docs: Replace Python 4.0 -> 3.10 (GH-9579)
This commit is contained in:
parent
5a5ce064b3
commit
fad6af2744
2 changed files with 11 additions and 11 deletions
|
@ -384,8 +384,8 @@ async def wait(fs, *, loop=None, timeout=None, return_when=ALL_COMPLETED):
|
|||
if loop is None:
|
||||
loop = events.get_running_loop()
|
||||
else:
|
||||
warnings.warn("The loop argument is deprecated and scheduled for"
|
||||
"removal in Python 4.0.",
|
||||
warnings.warn("The loop argument is deprecated and scheduled for "
|
||||
"removal in Python 3.10.",
|
||||
DeprecationWarning, stacklevel=2)
|
||||
|
||||
fs = {ensure_future(f, loop=loop) for f in set(fs)}
|
||||
|
@ -414,8 +414,8 @@ async def wait_for(fut, timeout, *, loop=None):
|
|||
if loop is None:
|
||||
loop = events.get_running_loop()
|
||||
else:
|
||||
warnings.warn("The loop argument is deprecated and scheduled for"
|
||||
"removal in Python 4.0.",
|
||||
warnings.warn("The loop argument is deprecated and scheduled for "
|
||||
"removal in Python 3.10.",
|
||||
DeprecationWarning, stacklevel=2)
|
||||
|
||||
if timeout is None:
|
||||
|
@ -595,8 +595,8 @@ async def sleep(delay, result=None, *, loop=None):
|
|||
if loop is None:
|
||||
loop = events.get_running_loop()
|
||||
else:
|
||||
warnings.warn("The loop argument is deprecated and scheduled for"
|
||||
"removal in Python 4.0.",
|
||||
warnings.warn("The loop argument is deprecated and scheduled for "
|
||||
"removal in Python 3.10.",
|
||||
DeprecationWarning, stacklevel=2)
|
||||
|
||||
future = loop.create_future()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue