summaryrefslogtreecommitdiff
path: root/Lib/asyncio/windows_events.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-11-28 11:15:26 +0100
committerGitHub <noreply@github.com>2017-11-28 11:15:26 +0100
commita10dc3efcbba8aa7cc7d1a017f8b22fc4fa8e87c (patch)
tree6ed634f185e7920ed25ae56e537e0202b675f7c9 /Lib/asyncio/windows_events.py
parent92f9339a58a613a56683510499509d1b702921a8 (diff)
downloadcpython-git-a10dc3efcbba8aa7cc7d1a017f8b22fc4fa8e87c.tar.gz
asyncio: use directly socket.socketpair() (#4597)
Since Python 3.5, socket.socketpair() is also available on Windows, and so can be used directly, rather than using asyncio.windows_utils.socketpair().
Diffstat (limited to 'Lib/asyncio/windows_events.py')
-rw-r--r--Lib/asyncio/windows_events.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/Lib/asyncio/windows_events.py b/Lib/asyncio/windows_events.py
index 6045ba029e..031e3f1874 100644
--- a/Lib/asyncio/windows_events.py
+++ b/Lib/asyncio/windows_events.py
@@ -296,9 +296,6 @@ class PipeServer(object):
class _WindowsSelectorEventLoop(selector_events.BaseSelectorEventLoop):
"""Windows version of selector event loop."""
- def _socketpair(self):
- return windows_utils.socketpair()
-
class ProactorEventLoop(proactor_events.BaseProactorEventLoop):
"""Windows version of proactor event loop using IOCP."""
@@ -308,9 +305,6 @@ class ProactorEventLoop(proactor_events.BaseProactorEventLoop):
proactor = IocpProactor()
super().__init__(proactor)
- def _socketpair(self):
- return windows_utils.socketpair()
-
@coroutine
def create_pipe_connection(self, protocol_factory, address):
f = self._proactor.connect_pipe(address)