summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-02-20 20:59:38 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-02-20 20:59:38 (GMT)
commita90e8edaea8761abf7c4820e01409b94a4044049 (patch)
tree07f3dcb46702ce3a7814c783b600517c482c8e84 /Lib/asyncio
parent35669ae77ef4c501f09b1620bd3137dd5931868c (diff)
downloadcpython-a90e8edaea8761abf7c4820e01409b94a4044049.zip
cpython-a90e8edaea8761abf7c4820e01409b94a4044049.tar.gz
cpython-a90e8edaea8761abf7c4820e01409b94a4044049.tar.bz2
asyncio: _check_resolved_address() must also accept IPv6 without flow_info and
scope_id: (host, port).
Diffstat (limited to 'Lib/asyncio')
-rw-r--r--Lib/asyncio/base_events.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py
index 1615ecb..80df927 100644
--- a/Lib/asyncio/base_events.py
+++ b/Lib/asyncio/base_events.py
@@ -48,7 +48,7 @@ def _check_resolved_address(sock, address):
if family == socket.AF_INET:
host, port = address
elif family == socket.AF_INET6:
- host, port, flow_info, scope_id = address
+ host, port = address[:2]
else:
return