Current Path : /opt/alt/python27/lib/python2.7/site-packages/raven/utils/ |
Current File : //opt/alt/python27/lib/python2.7/site-packages/raven/utils/ssl_match_hostname.pyc |
� ��Yc @@ sW d Z d d l m Z d d l Z d Z d e f d � � YZ d d � Z d � Z d S( sH The match_hostname() function from Python 3.2, essential when using SSL.i ( t absolute_importNs 3.2.2t CertificateErrorc B@ s e Z RS( ( t __name__t __module__( ( ( sO /opt/alt/python27/lib/python2.7/site-packages/raven/utils/ssl_match_hostname.pyR s i c C@ sL g } | s t S| j d � } | d } | j d � } | | k r] t d t | � � � n | sy | j � | j � k S| d k r� | j d � nY | j d � s� | j d � r� | j t j | � � n"