summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/proactor_events.py
diff options
context:
space:
mode:
authorYury Selivanov <yury@magic.io>2016-06-08 16:33:31 (GMT)
committerYury Selivanov <yury@magic.io>2016-06-08 16:33:31 (GMT)
commitf1c6fa986647791977d974bd43119b46a7a3cdbc (patch)
tree191f22cd29bf8bdf269be09fd14ff5a7f7cbf660 /Lib/asyncio/proactor_events.py
parent7d7a11b5d700c54260c517d0fb57fe1caf591e31 (diff)
downloadcpython-f1c6fa986647791977d974bd43119b46a7a3cdbc.zip
cpython-f1c6fa986647791977d974bd43119b46a7a3cdbc.tar.gz
cpython-f1c6fa986647791977d974bd43119b46a7a3cdbc.tar.bz2
Issue #27136: Fix DNS static resolution; don't use it in getaddrinfo
Patch by A. Jesse Jiryu Davis
Diffstat (limited to 'Lib/asyncio/proactor_events.py')
-rw-r--r--Lib/asyncio/proactor_events.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/Lib/asyncio/proactor_events.py b/Lib/asyncio/proactor_events.py
index eb92458..3ac314c 100644
--- a/Lib/asyncio/proactor_events.py
+++ b/Lib/asyncio/proactor_events.py
@@ -440,14 +440,7 @@ class BaseProactorEventLoop(base_events.BaseEventLoop):
return self._proactor.send(sock, data)
def sock_connect(self, sock, address):
- try:
- base_events._check_resolved_address(sock, address)
- except ValueError as err:
- fut = self.create_future()
- fut.set_exception(err)
- return fut
- else:
- return self._proactor.connect(sock, address)
+ return self._proactor.connect(sock, address)
def sock_accept(self, sock):
return self._proactor.accept(sock)