diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2016-05-16 19:38:39 (GMT) |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2016-05-16 19:38:39 (GMT) |
commit | 7661db622892c9731c502ccdd7af130cbfd23f5c (patch) | |
tree | 3d0d940b0a5a26a1a89e27f6e4969ae612a9cb9b /Lib/asyncio/streams.py | |
parent | 7ed7ce6ee76c1e4aaa94151f156fb2ba5163b5b2 (diff) | |
download | cpython-7661db622892c9731c502ccdd7af130cbfd23f5c.zip cpython-7661db622892c9731c502ccdd7af130cbfd23f5c.tar.gz cpython-7661db622892c9731c502ccdd7af130cbfd23f5c.tar.bz2 |
Issue #27041: asyncio: Add loop.create_future method
Diffstat (limited to 'Lib/asyncio/streams.py')
-rw-r--r-- | Lib/asyncio/streams.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/asyncio/streams.py b/Lib/asyncio/streams.py index b7b0485..da3d526 100644 --- a/Lib/asyncio/streams.py +++ b/Lib/asyncio/streams.py @@ -210,7 +210,7 @@ class FlowControlMixin(protocols.Protocol): return waiter = self._drain_waiter assert waiter is None or waiter.cancelled() - waiter = futures.Future(loop=self._loop) + waiter = self._loop.create_future() self._drain_waiter = waiter yield from waiter @@ -449,7 +449,7 @@ class StreamReader: self._paused = False self._transport.resume_reading() - self._waiter = futures.Future(loop=self._loop) + self._waiter = self._loop.create_future() try: yield from self._waiter finally: |