3aa5b2e19024c6e247e6a55f7aefb643c357b3f7
[sdc/sdc-distribution-client.git] /
1 try:
2     # Python 3.2+
3     from ssl import CertificateError, match_hostname
4 except ImportError:
5     try:
6         # Backport of the function from a pypi module
7         from backports.ssl_match_hostname import CertificateError, match_hostname
8     except ImportError:
9         # Our vendored copy
10         from _implementation import CertificateError, match_hostname
11
12 # Not needed, but documenting what we provide.
13 __all__ = ('CertificateError', 'match_hostname')