diff options
author | Raymond Hettinger <python@rcn.com> | 2016-09-09 22:58:00 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2016-09-09 22:58:00 (GMT) |
commit | f1024f74250d534d16a9970e5093b3b4e693b398 (patch) | |
tree | 84f2c7e4dbdc45b8236b641efdfbdf3db5c494bb /Lib/asyncio/base_events.py | |
parent | 3ceb573a720b8b9c9148135c64ba966fa37e3a92 (diff) | |
parent | 87dc4d61890b4ed1c74b1f5e7256b3aa2080a499 (diff) | |
download | cpython-f1024f74250d534d16a9970e5093b3b4e693b398.zip cpython-f1024f74250d534d16a9970e5093b3b4e693b398.tar.gz cpython-f1024f74250d534d16a9970e5093b3b4e693b398.tar.bz2 |
merge
Diffstat (limited to 'Lib/asyncio/base_events.py')
-rw-r--r-- | Lib/asyncio/base_events.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py index b420586..9c2fa12 100644 --- a/Lib/asyncio/base_events.py +++ b/Lib/asyncio/base_events.py @@ -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 |