[Python-checkins] cpython (merge 3.5 -> 3.6): Issue #29314: Merge with 3.5

mariatta.wijaya python-checkins at python.org
Tue Feb 7 01:06:38 EST 2017


https://hg.python.org/cpython/rev/6dbe9051cdec
changeset:   106461:6dbe9051cdec
branch:      3.6
parent:      106457:c3d779f96b20
parent:      106460:0f5161f865d7
user:        Mariatta Wijaya <mariatta.wijaya at gmail.com>
date:        Mon Feb 06 22:05:10 2017 -0800
summary:
  Issue #29314: Merge with 3.5

files:
  Lib/asyncio/tasks.py |  3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)


diff --git a/Lib/asyncio/tasks.py b/Lib/asyncio/tasks.py
--- a/Lib/asyncio/tasks.py
+++ b/Lib/asyncio/tasks.py
@@ -487,7 +487,8 @@
     """
 
     warnings.warn("asyncio.async() function is deprecated, use ensure_future()",
-                  DeprecationWarning)
+                  DeprecationWarning,
+                  stacklevel=2)
 
     return ensure_future(coro_or_future, loop=loop)
 

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list