summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/proactor_events.py
diff options
context:
space:
mode:
authorYury Selivanov <yury@magic.io>2016-06-08 16:33:59 (GMT)
committerYury Selivanov <yury@magic.io>2016-06-08 16:33:59 (GMT)
commit552bf94648f09f4df68be9fc34a22f3b8441a67a (patch)
tree8789b0e0ce9787c99eabe21353ed6f65f31bf5f0 /Lib/asyncio/proactor_events.py
parentb198c42bcb8a9d7ccf4da0218b6ad6adc5beadfb (diff)
parentf1c6fa986647791977d974bd43119b46a7a3cdbc (diff)
downloadcpython-552bf94648f09f4df68be9fc34a22f3b8441a67a.zip
cpython-552bf94648f09f4df68be9fc34a22f3b8441a67a.tar.gz
cpython-552bf94648f09f4df68be9fc34a22f3b8441a67a.tar.bz2
Merge 3.5 (issue #27136, asyncio)
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 530a667..4b6067a 100644
--- a/Lib/asyncio/proactor_events.py
+++ b/Lib/asyncio/proactor_events.py
@@ -441,14 +441,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)