File: __init__.py

package info (click to toggle)
python-urllib3 1.16-1~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 1,376 kB
  • sloc: python: 9,448; makefile: 152
file content (11 lines) | stat: -rw-r--r-- 301 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
from __future__ import absolute_import

__all__ = ('ssl_match_hostname', )

try:
    # cPython >= 2.7.9 has ssl features backported from Python3
    from ssl import CertificateError
    del CertificateError
    import ssl as ssl_match_hostname
except ImportError:
    from . import ssl_match_hostname