diff options
Diffstat (limited to 'Lib/asyncio/windows_events.py')
| -rw-r--r-- | Lib/asyncio/windows_events.py | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/asyncio/windows_events.py b/Lib/asyncio/windows_events.py index 7be3e02232..668fe1451b 100644 --- a/Lib/asyncio/windows_events.py +++ b/Lib/asyncio/windows_events.py @@ -366,7 +366,7 @@ class ProactorEventLoop(proactor_events.BaseProactorEventLoop):      def _make_subprocess_transport(self, protocol, args, shell,                                     stdin, stdout, stderr, bufsize,                                     extra=None, **kwargs): -        waiter = futures.Future(loop=self) +        waiter = self.create_future()          transp = _WindowsSubprocessTransport(self, protocol, args, shell,                                               stdin, stdout, stderr, bufsize,                                               waiter=waiter, extra=extra, @@ -417,7 +417,7 @@ class IocpProactor:          return tmp      def _result(self, value): -        fut = futures.Future(loop=self._loop) +        fut = self._loop.create_future()          fut.set_result(value)          return fut  | 
