diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2015-05-11 18:50:41 (GMT) |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2015-05-11 18:50:41 (GMT) |
commit | 9657caf16835bd522be13962dc204d3e42b9c062 (patch) | |
tree | 935617398e1a8844aee5a95cbdfbbb07bf1deea5 /Lib/asyncio/base_events.py | |
parent | 926b990d3d19788e3b5fb5700570721e74049484 (diff) | |
parent | 59eb9a4da504315345b5b0d8fb8eebddc22ccb92 (diff) | |
download | cpython-9657caf16835bd522be13962dc204d3e42b9c062.zip cpython-9657caf16835bd522be13962dc204d3e42b9c062.tar.gz cpython-9657caf16835bd522be13962dc204d3e42b9c062.tar.bz2 |
Merge 3.4 (asyncio changes)
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 efbb9f4..98aadaf 100644 --- a/Lib/asyncio/base_events.py +++ b/Lib/asyncio/base_events.py @@ -315,7 +315,7 @@ class BaseEventLoop(events.AbstractEventLoop): self._check_closed() new_task = not isinstance(future, futures.Future) - future = tasks.async(future, loop=self) + future = tasks.ensure_future(future, loop=self) if new_task: # An exception is raised if the future didn't complete, so there # is no need to log the "destroy pending task" message |