view roundup/anypy/ssl_.py @ 7086:4d62d6e08daf

maint: Add alt text and a period to other alt text. Apparently ahrefs doesn't like alt="" to indicate an image that doesn't need to be announce to screenreaders and other assistive devices 8-(.
author John Rouillard <rouilj@ieee.org>
date Tue, 29 Nov 2022 21:56:23 -0500
parents 3e8f2104753b
children 07ce4e4110f5
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

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