Kaydet (Commit) f0200e06 authored tarafından Yury Selivanov's avatar Yury Selivanov

asyncio: Fix BytesWarning (use typed=True in lru_cache for _ipaddr_info)

üst 0eb39e78
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment