view roundup/anypy/ssl_.py @ 7701:5a35cfee727a

doc: use 'TEST-NET' IPv4 or IPv6 IP address ranges from RFC 6890 Replace ip examples with test doc ip addresses for any address not in 127.0.0.1 or 0.0.0.0.
author John Rouillard <rouilj@ieee.org>
date Tue, 14 Nov 2023 16:53:56 -0500
parents 07ce4e4110f5
children d5d7ecd31864
line wrap: on
line source

try:
    # Python 3+
    from ssl import SSLError
except (ImportError, AttributeError):
    # Python 2.5-2.7
    from socket import sslerror as SSLError    # noqa: F401

Roundup Issue Tracker: http://roundup-tracker.org/