summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMariatta Wijaya <mariatta.wijaya@gmail.com>2017-02-07 06:06:04 (GMT)
committerMariatta Wijaya <mariatta.wijaya@gmail.com>2017-02-07 06:06:04 (GMT)
commit189413dcfe1a3e8747457e3d5b6f66f8cd312e15 (patch)
tree13746514147d3373592c968ae1aa751f2554e1ec /Lib
parent743376f45e7428dfd002b065afb822ff467657b0 (diff)
parent6138432e591314bd5b05d6856d84188086e694e5 (diff)
downloadcpython-189413dcfe1a3e8747457e3d5b6f66f8cd312e15.zip
cpython-189413dcfe1a3e8747457e3d5b6f66f8cd312e15.tar.gz
cpython-189413dcfe1a3e8747457e3d5b6f66f8cd312e15.tar.bz2
Issue #29314: Merge with 3.6
Diffstat (limited to 'Lib')
-rw-r--r--Lib/asyncio/tasks.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/asyncio/tasks.py b/Lib/asyncio/tasks.py
index 5a43ef2..4d79367 100644
--- a/Lib/asyncio/tasks.py
+++ b/Lib/asyncio/tasks.py
@@ -487,7 +487,8 @@ def async_(coro_or_future, *, loop=None):
"""
warnings.warn("asyncio.async() function is deprecated, use ensure_future()",
- DeprecationWarning)
+ DeprecationWarning,
+ stacklevel=2)
return ensure_future(coro_or_future, loop=loop)