mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Merge 3.5 (issue #28371)
This commit is contained in:
commit
d2c5fab7c6
3 changed files with 11 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue