view roundup/anypy/ssl_.py @ 8319:5e6ff4e9cacb

build: issue2551397: remove support for python 3.6 One last file with a 3.6 reference.
author John Rouillard <rouilj@ieee.org>
date Sun, 11 May 2025 20:31:16 -0400
parents d5d7ecd31864
children
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/