summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio
diff options
context:
space:
mode:
authorYury Selivanov <yury@magic.io>2016-10-05 22:29:04 (GMT)
committerYury Selivanov <yury@magic.io>2016-10-05 22:29:04 (GMT)
commitd2c5fab7c618b8c94b42ff4ae8c1875cc521f09d (patch)
tree8028fc4f0ca275b347d6f977c32a5a6f2330de2a /Lib/asyncio
parent139914a0589154aaf0f47ad6725f71e8baf2a6cf (diff)
parent0de3de6cbfe034654dc03f3808de0c25e28a0c38 (diff)
downloadcpython-d2c5fab7c618b8c94b42ff4ae8c1875cc521f09d.zip
cpython-d2c5fab7c618b8c94b42ff4ae8c1875cc521f09d.tar.gz
cpython-d2c5fab7c618b8c94b42ff4ae8c1875cc521f09d.tar.bz2
Merge 3.5 (issue #28371)
Diffstat (limited to 'Lib/asyncio')
-rw-r--r--Lib/asyncio/base_events.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py
index 86b4291..5b5fcde 100644
--- a/Lib/asyncio/base_events.py
+++ b/Lib/asyncio/base_events.py
@@ -606,6 +606,9 @@ class BaseEventLoop(events.AbstractEventLoop):
if isinstance(func, events.Handle):
assert not args
assert not isinstance(func, events.TimerHandle)
+ warnings.warn(
+ "Passing Handle to loop.run_in_executor() is deprecated",
+ DeprecationWarning)
if func._cancelled:
f = self.create_future()
f.set_result(None)