ok

Mini Shell

Direktori : /opt/cloudlinux/venv/lib64/python3.11/site-packages/raven/conf/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib64/python3.11/site-packages/raven/conf/__pycache__/remote.cpython-311.pyc

�

�܋f3���ddlmZddlZddlZddlZddlmZmZddlm	Z	ddl
mZddlm
Z
mZdZejd��Zd	�Ze��ZGd
�de��ZdS)�)�absolute_importN)�PY2�	text_type)�
InvalidDsn)�	to_string)�	parse_qsl�urlparsez(Unsupported Sentry DSN scheme: {0} ({1})�ravenc���ddlm}ddlm}dtjvr*dtjvrt�d��|Sdtjvrt�d��|S|S)	Nr)�ThreadedHTTPTransport)�
HTTPTransport�CURRENT_VERSION_ID�INSTANCE_IDzODetected environment to be Google App Engine. Using synchronous HTTP transport.�LAMBDA_TASK_ROOTzHDetected environment to be AWS Lambda. Using synchronous HTTP transport.)�raven.transport.threadedr�raven.transport.httpr
�os�environ�logger�info)rr
s  �H/opt/cloudlinux/venv/lib64/python3.11/site-packages/raven/conf/remote.py�discover_default_transportrs���>�>�>�>�>�>�2�2�2�2�2�2��r�z�)�)�m�r�z�.I�.I����e�f�f�f����R�Z�'�'����^�_�_�_��� � �c�P�eZdZ		d	d�Zd�Zd�Zd�Zd�Zd�Ze	d
d���Z
dS)�RemoteConfigNc��|r|�d��}|�d|�d�}nd}||_||_||_||_|pi|_||_|pt|_dS)N�/z/api/z/store/)	�rstrip�base_url�project�
public_key�
secret_key�options�store_endpoint�DEFAULT_TRANSPORT�_transport_cls)�selfrr r!r"�	transportr#r$s        r�__init__zRemoteConfig.__init__(sw���	"����s�+�+�H�3;�8�8�W�W�W�E�N�N�!�N� ��
����$���$����}�"���,���'�<�+<����rc�*�t|j��S�N�rr�r's r�__unicode__zRemoteConfig.__unicode__9������'�'�'rc�*�t|j��Sr+r,r-s r�__str__zRemoteConfig.__str__<r/rc�D�t|j|j|jg��Sr+)�allrr r!r-s r�	is_activezRemoteConfig.is_active?s���D�M�4�<���A�B�B�Brc�p�|jsdSt|d��s|jdi|j��|_|jS)N�
_transport�)r$�hasattrr&r#r6r-s r�
get_transportzRemoteConfig.get_transportBsI���"�	��F��t�\�*�*�	B�1�d�1�A�A�D�L�A�A�D�O���rc��t|j��}|j}|jr
|d|jzz
}d|j�d|�|j�d|j��S)N�:%sz//�@r)r	r�hostname�portr!�pathr )r'�url�netlocs   r�get_public_dsnzRemoteConfig.get_public_dsnJsU���t�}�%�%������8�	'��e�c�h�&�&�F��!%����&�&�#�(�(�(�D�L�L�Q�Qrc��trt|��}t|�����}|jdvrtjd��|�v|sddlm}m	}||��}|�
|j��s-tt�
|j|�����|�|j��}|j}|jr
|d|jzz
}|j�dd��}t'|��dkr	|d}	nd}	|d	}
t)||
|jg��s$td
|���z���|j�dd��d	�d|�|	��}|||
|j|jt1t3|j����|�
��S)N)�http�httpsznTransport selection via DSN is deprecated. You should explicitly pass the transport class to Client() instead.r)�TransportRegistry�default_transportsr;r�����zInvalid Sentry DSN: %r�+z://)rr r!r"r#r()rrr	�strip�scheme�warnings�warn�raven.transportrFrG�supported_schemer�ERR_UNKNOWN_SCHEME�format�get_transport_clsr=r>r?�rsplit�lenr3�username�geturl�password�dictr�query)�cls�valuer(�transport_registryr@rFrGrA�	path_bitsr?r rs            r�from_stringzRemoteConfig.from_stringQs����	%��e�$�$�E��u�{�{�}�}�%�%���:�.�.�.��M�K�
L�
L�
L���%�
K�Q�Q�Q�Q�Q�Q�Q�Q�%6�%6�7I�%J�%J�"�%�6�6�s�z�B�B�
O� �!3�!:�!:�3�:�u�!M�!M�N�N�N�*�<�<�S�Z�H�H�I�����8�	'��e�c�h�&�&�F��H�O�O�C��+�+�	��y�>�>�A����Q�<�D�D��D��B�-���F�G�S�\�2�3�3�	F��5��
�
���D�E�E�E�"%�*�"3�"3�C��";�";�B�"?�"?�"?�����N���s����|��|���3�9�-�-�.�.��

�
�
�	
r)NNNNNN)NN)�__name__�
__module__�__qualname__r)r.r1r4r9rB�classmethodr`r7rrrr's�������?C�:>�=�=�=�=�"(�(�(�(�(�(�C�C�C����R�R�R��,
�,
�,
��[�,
�,
�,
rr)�
__future__r�loggingrrN�raven.utils.compatrr�raven.exceptionsr�raven.utils.encodingr�raven.utils.urlparserr	rR�	getLoggerrrr%�objectrr7rr�<module>rms���&�&�&�&�&�&�����	�	�	�	�����-�-�-�-�-�-�-�-�'�'�'�'�'�'�*�*�*�*�*�*�4�4�4�4�4�4�4�4�?��	��	�7�	#�	#��!�!�!�&/�.�0�0��W
�W
�W
�W
�W
�6�W
�W
�W
�W
�W
r

Zerion Mini Shell 1.0