changeset 106462:9f16900bebaa

Issue #29314: Merge with 3.6 [#29314]
author Mariatta Wijaya <mariatta.wijaya@gmail.com>
date Mon, 06 Feb 2017 22:06:04 -0800
parents e376d2bfde9b (current diff) 6dbe9051cdec (diff)
children ee074604bf0c
files
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)