summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/tasks.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/asyncio/tasks.py')
-rw-r--r--Lib/asyncio/tasks.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/asyncio/tasks.py b/Lib/asyncio/tasks.py
index b52aad8..743e82b 100644
--- a/Lib/asyncio/tasks.py
+++ b/Lib/asyncio/tasks.py
@@ -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()