gvsig-scripting / org.gvsig.scripting / trunk / org.gvsig.scripting / org.gvsig.scripting.app / org.gvsig.scripting.app.mainplugin / src / main / resources-plugin / scripting / lib / requests / packages / urllib3 / packages / ssl_match_hostname / __init__.py @ 564
History | View | Annotate | Download (460 Bytes)
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') |