diff options
author | Mariatta Wijaya <mariatta.wijaya@gmail.com> | 2017-02-06 22:05:10 -0800 |
---|---|---|
committer | Mariatta Wijaya <mariatta.wijaya@gmail.com> | 2017-02-06 22:05:10 -0800 |
commit | 6138432e591314bd5b05d6856d84188086e694e5 (patch) | |
tree | 14df50b48c471c5f4ede9801ca79e810ec906aed /Lib/asyncio/tasks.py | |
parent | e39262ccc35ffd850595982ef9614634d02688da (diff) | |
parent | 4e7ff8b1a31ae9c11164940d4171df13b9c1e277 (diff) | |
download | cpython-git-6138432e591314bd5b05d6856d84188086e694e5.tar.gz |
Issue #29314: Merge with 3.5
Diffstat (limited to 'Lib/asyncio/tasks.py')
-rw-r--r-- | Lib/asyncio/tasks.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/asyncio/tasks.py b/Lib/asyncio/tasks.py index 5a43ef257f..4d79367d5c 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) |