Lines Matching refs:hasattr
344 if hasattr(os, 'sendfile'):
367 if hasattr(selectors, 'PollSelector'):
408 if total_sent > 0 and hasattr(file, 'seek'):
448 if total_sent > 0 and hasattr(file, 'seek'):
547 if hasattr(_socket.socket, "sendmsg"):
559 if hasattr(_socket.socket, "recvmsg"):
581 if hasattr(_socket.socket, "share"):
591 if hasattr(_socket, "socketpair"):
856 or not hasattr(_socket, 'IPPROTO_IPV6') \
857 or not hasattr(_socket, 'IPV6_V6ONLY'):
886 if reuse_port and not hasattr(_socket, "SO_REUSEPORT"):
905 hasattr(_socket, 'SO_REUSEADDR'):
917 elif hasattr(_socket, "IPV6_V6ONLY") and \
918 hasattr(_socket, "IPPROTO_IPV6"):