summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio
diff options
context:
space:
mode:
authorMariatta Wijaya <mariatta.wijaya@gmail.com>2017-02-07 06:05:10 (GMT)
committerMariatta Wijaya <mariatta.wijaya@gmail.com>2017-02-07 06:05:10 (GMT)
commit6138432e591314bd5b05d6856d84188086e694e5 (patch)
tree14df50b48c471c5f4ede9801ca79e810ec906aed /Lib/asyncio
parente39262ccc35ffd850595982ef9614634d02688da (diff)
parent4e7ff8b1a31ae9c11164940d4171df13b9c1e277 (diff)
downloadcpython-6138432e591314bd5b05d6856d84188086e694e5.zip
cpython-6138432e591314bd5b05d6856d84188086e694e5.tar.gz
cpython-6138432e591314bd5b05d6856d84188086e694e5.tar.bz2
Issue #29314: Merge with 3.5
Diffstat (limited to 'Lib/asyncio')
-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)