Hacked By AnonymousFox

Current Path : /opt/cloudlinux/venv/lib/python3.11/site-packages/raven/utils/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/raven/utils/__pycache__/http.cpython-311.pyc

�

�܋f���r�dZddlmZddlZddlZddlZddlmZddlm	Z	m
Z
ddlmZdej
dddfd�ZdS)	z�
raven.utils.http
~~~~~~~~~~~~~~~~

:copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
�)�absolute_importN)�defaults)�urllib2�httplib)�match_hostnameFc�4���
�G��fd�dtj���
G�
fd�dtj��}|r|g}n;	tjt	j�����g}n#t$rg}YnwxYwtj|�}tj	dkrktj��}	tj|��	|�
||��tj|	��S#tj|	��wxYw|�
|||��S)Nc�0��eZdZejZd�Z��fd�ZdS)�%urlopen.<locals>.ValidHTTPSConnectionc�:�tjj|g|�Ri|��dS�N)r�HTTPConnection�__init__)�self�args�kwargss   �G/opt/cloudlinux/venv/lib64/python3.11/site-packages/raven/utils/http.pyrz.urlopen.<locals>.ValidHTTPSConnection.__init__s,���"�+�D�B�4�B�B�B�6�B�B�B�B�B�c�T��tj|j|jf|j���}|jr||_|���tj	|�tj
���|_��5t|j���|j
p|j��dSdS)N)�address�timeout)�ca_certs�	cert_reqs)�socket�create_connection�host�portr�_tunnel_host�sock�_tunnel�ssl�wrap_socket�
CERT_REQUIREDr�getpeercert�assert_hostname)rrr$rs  ��r�connectz-urlopen.<locals>.ValidHTTPSConnection.connects�����+���D�I�.������D�� �
� ��	����������x�3�3D�F�F�F�D�I��*��t�y�4�4�6�6�#�3�@�t�y�B�B�B�B�B�+�*rN)�__name__�
__module__�__qualname__r�
HTTPS_PORT�default_portrr%)r$rs��r�ValidHTTPSConnectionr
sU��������)��	C�	C�	C�	B�	B�	B�	B�	B�	B�	B�	Brr+c���eZdZ�fd�ZdS)�"urlopen.<locals>.ValidHTTPSHandlerc�0��|��|��Sr)�do_open)r�reqr+s  �r�
https_openz-urlopen.<locals>.ValidHTTPSHandler.https_open-s����<�<� 4�c�:�:�:rN)r&r'r(r1)r+s�r�ValidHTTPSHandlerr-,s.�������	;�	;�	;�	;�	;�	;�	;rr2)�context)��)rr
r�HTTPSHandlerr �_create_unverified_context�AttributeError�build_opener�sys�version_infor�getdefaulttimeout�setdefaulttimeout�open)�url�datarr�
verify_sslr$r2�handlers�opener�default_timeoutr+s   ` `    @r�urlopenrEs}�����B�B�B�B�B�B�B�B�w�5�B�B�B�,;�;�;�;�;�;�;�G�0�;�;�;���%�&���	��,��6�8�8�:�:�:�;�H�H���	�	�	��H�H�H�	�����
!�8�
,�F�
��&� � � �2�4�4��� ��)�)�)�	6��;�;�s�D�)�)��$�_�5�5�5�5��F�$�_�5�5�5�5�����;�;�s�D�'�*�*�*s�'A(�(A7�6A7�C*�*D)�__doc__�
__future__rrr r:�
raven.confr�raven.utils.compatrr�raven.utils.ssl_match_hostnamer�TIMEOUTrE�rr�<module>rMs�����'�&�&�&�&�&�
�
�
�
�
�
�
�
�
�
�
�
�������/�/�/�/�/�/�/�/�9�9�9�9�9�9��H�$4�t��d�/+�/+�/+�/+�/+�/+r

Hacked By AnonymousFox1.0, Coded By AnonymousFox