bpo-32327: Convert asyncio functions documented as coroutines to coroutines. (#4872)

This commit is contained in:
Yury Selivanov 2017-12-14 20:53:26 -05:00 committed by GitHub
parent 41264f1cd4
commit 19a44f63c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 170 additions and 195 deletions

View file

@ -432,20 +432,20 @@ class BaseProactorEventLoop(base_events.BaseEventLoop):
# Close the event loop
super().close()
def sock_recv(self, sock, n):
return self._proactor.recv(sock, n)
async def sock_recv(self, sock, n):
return await self._proactor.recv(sock, n)
def sock_recv_into(self, sock, buf):
return self._proactor.recv_into(sock, buf)
async def sock_recv_into(self, sock, buf):
return await self._proactor.recv_into(sock, buf)
def sock_sendall(self, sock, data):
return self._proactor.send(sock, data)
async def sock_sendall(self, sock, data):
return await self._proactor.send(sock, data)
def sock_connect(self, sock, address):
return self._proactor.connect(sock, address)
async def sock_connect(self, sock, address):
return await self._proactor.connect(sock, address)
def sock_accept(self, sock):
return self._proactor.accept(sock)
async def sock_accept(self, sock):
return await self._proactor.accept(sock)
def _close_self_pipe(self):
if self._self_reading_future is not None: