summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2016-05-21 20:50:31 (GMT)
committerYury Selivanov <yselivanov@sprymix.com>2016-05-21 20:50:31 (GMT)
commit72005f17444edbd1e692ef3801b175c8f23a9973 (patch)
treeb055f1b947d2b67638c9f73cc7fdd4a1a3612667 /Lib/asyncio
parentb227b8b1bb00f340fb1f393b114d046a6ad9a26e (diff)
parentf0200e06f0e45714fbe84c46d7b88943c6d1a58b (diff)
downloadcpython-72005f17444edbd1e692ef3801b175c8f23a9973.zip
cpython-72005f17444edbd1e692ef3801b175c8f23a9973.tar.gz
cpython-72005f17444edbd1e692ef3801b175c8f23a9973.tar.bz2
Merge 3.5 (asyncio)
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 23dfef4..cb845d9 100644
--- a/Lib/asyncio/base_events.py
+++ b/Lib/asyncio/base_events.py
@@ -86,7 +86,7 @@ if hasattr(socket, 'SOCK_CLOEXEC'):
_SOCKET_TYPE_MASK |= socket.SOCK_CLOEXEC
-@functools.lru_cache(maxsize=1024)
+@functools.lru_cache(maxsize=1024, typed=True)
def _ipaddr_info(host, port, family, type, proto):
# Try to skip getaddrinfo if "host" is already an IP. Since getaddrinfo
# blocks on an exclusive lock on some platforms, users might handle name