diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2015-11-17 12:19:41 -0500 |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2015-11-17 12:19:41 -0500 |
commit | 5d7e3b6cd208dffdfe8530664081b62e0c7e3092 (patch) | |
tree | b6c746197f3d33280a3c99261e0f7288611f97cf /Lib/asyncio/tasks.py | |
parent | 0013ccedd1e9dd829a5966afc71c2363604b011d (diff) | |
download | cpython-git-5d7e3b6cd208dffdfe8530664081b62e0c7e3092.tar.gz |
asyncio: Cleanup Future API
See https://github.com/python/asyncio/pull/292 for details.
Diffstat (limited to 'Lib/asyncio/tasks.py')
-rw-r--r-- | Lib/asyncio/tasks.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/asyncio/tasks.py b/Lib/asyncio/tasks.py index 61f0645f97..63cbcda32f 100644 --- a/Lib/asyncio/tasks.py +++ b/Lib/asyncio/tasks.py @@ -500,7 +500,8 @@ def sleep(delay, result=None, *, loop=None): future = futures.Future(loop=loop) h = future._loop.call_later(delay, - future._set_result_unless_cancelled, result) + futures._set_result_unless_cancelled, + future, result) try: return (yield from future) finally: |