summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/base_events.py
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)
commit934c88588541141144ce4d013a4ac769c80d62ce (patch)
tree4624f4dbc26c256780e84de8318f7ba5ef76e7e6 /Lib/asyncio/base_events.py
parentd3f8e308286731eda3cb488a008de094f980353d (diff)
downloadcpython-934c88588541141144ce4d013a4ac769c80d62ce.zip
cpython-934c88588541141144ce4d013a4ac769c80d62ce.tar.gz
cpython-934c88588541141144ce4d013a4ac769c80d62ce.tar.bz2
asyncio: _check_resolved_address() must also accept IPv6 without flow_info and
scope_id: (host, port).
Diffstat (limited to 'Lib/asyncio/base_events.py')
-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