Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 189413d

Browse files
committed
Issue #29314: Merge with 3.6
2 parents 743376f + 6138432 commit 189413d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/asyncio/tasks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,8 @@ def async_(coro_or_future, *, loop=None):
487487
"""
488488

489489
warnings.warn("asyncio.async() function is deprecated, use ensure_future()",
490-
DeprecationWarning)
490+
DeprecationWarning,
491+
stacklevel=2)
491492

492493
return ensure_future(coro_or_future, loop=loop)
493494

0 commit comments

Comments
 (0)