diff options
author | Guido van Rossum <guido@python.org> | 2016-09-09 14:26:31 -0700 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2016-09-09 14:26:31 -0700 |
commit | 7b3b3dc85da3ec176d7fd7caa546298c232c9c0a (patch) | |
tree | 045958462b64c3f8c393c3cc05131c03ceb43aef /Lib/asyncio/base_events.py | |
parent | 9b32bda851c113cf4a85cdc01c603a1daba4d5d4 (diff) | |
download | cpython-git-7b3b3dc85da3ec176d7fd7caa546298c232c9c0a.tar.gz |
Merge asyncio upstream.
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 017437552f..99f12b40bd 100644 --- a/Lib/asyncio/base_events.py +++ b/Lib/asyncio/base_events.py @@ -363,7 +363,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 |