(address: Any)
| 81 | # For SNI support. According to RFC6066, section 3, IPv4 and IPv6 literals are |
| 82 | # not permitted for SNI hostname. |
| 83 | def _is_ip_address(address: Any) -> bool: |
| 84 | try: |
| 85 | _ip_address(address) |
| 86 | return True |
| 87 | except (ValueError, UnicodeError): |
| 88 | return False |
| 89 | |
| 90 | |
| 91 | # According to the docs for socket.send it can raise |