diff options
author | Mariatta Wijaya <mariatta.wijaya@gmail.com> | 2017-02-06 22:06:04 -0800 |
---|---|---|
committer | Mariatta Wijaya <mariatta.wijaya@gmail.com> | 2017-02-06 22:06:04 -0800 |
commit | 76257c944849d2c75256c8cc89a95b0c0d709b7e (patch) | |
tree | 86fe348718d9451aa1485514e2597f88ea33e83d | |
parent | 731cca110f376cdbaffb536e42d6c9d6da574fa8 (diff) | |
parent | c1a1d106b05014125bf81575941951296edd431c (diff) | |
download | cpython-76257c944849d2c75256c8cc89a95b0c0d709b7e.tar.gz |
Issue #29314: Merge with 3.6
-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) |