~ubuntu-branches/debian/jessie/armory/jessie

« back to all changes in this revision

Viewing changes to urllib3/packages/ssl_match_hostname/__init__.py

  • Committer: Package Import Robot
  • Author(s): Joseph Bisch
  • Date: 2014-10-07 10:22:45 UTC
  • Revision ID: package-import@ubuntu.com-20141007102245-2s3x3rhjxg689hek
Tags: upstream-0.92.3
ImportĀ upstreamĀ versionĀ 0.92.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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')