mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
merge
This commit is contained in:
commit
f1024f7425
7 changed files with 96 additions and 19 deletions
|
@ -414,7 +414,7 @@ class BaseEventLoop(events.AbstractEventLoop):
|
|||
"""
|
||||
self._check_closed()
|
||||
|
||||
new_task = not isinstance(future, futures.Future)
|
||||
new_task = not futures.isfuture(future)
|
||||
future = tasks.ensure_future(future, loop=self)
|
||||
if new_task:
|
||||
# An exception is raised if the future didn't complete, so there
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue