summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2016-05-21 20:50:16 (GMT)
committerYury Selivanov <yselivanov@sprymix.com>2016-05-21 20:50:16 (GMT)
commitf0200e06f0e45714fbe84c46d7b88943c6d1a58b (patch)
tree212a65b4817d4bd231b6967e584c2a398d49d076 /Lib/asyncio
parent0eb39e7886b5c8ebbbd2685f2c2445c98f6f97a9 (diff)
downloadcpython-f0200e06f0e45714fbe84c46d7b88943c6d1a58b.zip
cpython-f0200e06f0e45714fbe84c46d7b88943c6d1a58b.tar.gz
cpython-f0200e06f0e45714fbe84c46d7b88943c6d1a58b.tar.bz2
asyncio: Fix BytesWarning (use typed=True in lru_cache for _ipaddr_info)
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 e5e9394..ac1089a 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