ok

Mini Shell

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

�

I/�f[���ddlZddlmZddlmZmZddlmZddlm	Z	ddl
mZddlm
Z
ddlmZdd	lmZGd
�de��ZGd�d
e
��ZdS)�N)�RequestException)�cpapi�get_lve_version)�get_cl_edition_readable)�get_rhn_systemid_value)�UNKNOWN_CP_NAME)�Client)�RequestsHTTPTransport)�get_pkg_versionc���eZdZ�fd�Z�xZS)�SafeRequestsHTTPTransportc�r��	t���|||��dS#t$rYdSwxYw)N)�super�sendr)�self�url�data�headers�	__class__s    ���/builddir/build/BUILDROOT/alt-python27-cllib-3.4.11-1.el8.cloudlinux.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/clsentry/client.pyrzSafeRequestsHTTPTransport.sendsL���	��G�G�L�L��d�G�,�,�,�,�,���	�	�	�
�D�D�	���s�#(�
6�6)�__name__�
__module__�__qualname__r�
__classcell__�rs@rr
r
s8����������������r
c�8��eZdZdZ�fd�Zed���Z�xZS)�UserlandClientz=
    Userland's sentry client with some common settings.
    c���|�|���tgddgddddtd���t	��j|fi|��dS)N�sentry�ravenTi��d)z$clsentry.processors.UserlandSanitize)�tags�ignore_exceptions�
exclude_paths�auto_log_stacks�string_max_length�list_max_length�
processors�	transport)�update�_get_user_tags�KeyboardInterruptr
r�__init__)r�dsn�optionsrs   �rr.zUserlandClient.__init__$s��������'�'�)�)�!�"���� $�!%�"�D�3�
�
�	�	�	�"	������(�(��(�(�(�(�(rc�0�tj��}|r|�d��nd}|r|�d��nt}tj��rdnd}|||td��t
��td��t��dtd��td	��td
��td��td��td
��td��tj
��d�S)z?
        Get tags for easy search
        :rtype: dict
        �versionN�name�WP2�
os_release�architecturer�
lvemanager�alt-python27-cllib�	lve-stats�	lve-utils�cl-end-server-tools�cl-node-exporter�cagefs)zControl Panel NamezControl Panel VersionzControl Panel ProductzCloudLinux versionzCloudlinux edition�Architecture�lve_versionr7r8r9r:r;r<r=�kernel)r�get_cp_description�getr�is_wp2_environmentrrrr�platform�release)�cls�cp_description�
cp_version�cp_name�
cp_products     rr,zUserlandClient._get_user_tags8s���1�3�3��6D�N�^�'�'�	�2�2�2�$�
�0>�S�.�$�$�V�,�,�,�O��#�6�8�8�B�U�U�d�
�#*�%/�%/�"8��"F�"F�"9�";�";�2�>�B�B�*�,�,�Q�/�)�,�7�7�"1�2F�"G�"G�(��5�5�(��5�5�#2�3H�#I�#I� /�0B� C� C�%�h�/�/��&�(�(�!
�
�	
r)rrr�__doc__r.�classmethodr,rrs@rrr s]���������)�)�)�)�)�(�
�
��[�
�
�
�
�
rr)rD�requests.exceptionsr�clcommonrr�clcommon.lib.cleditionr�clcommon.utilsr�clcommon.cpapi.constrr!r	�raven.transportr
�clsentry.utilsrr
r�rr�<module>rUs������0�0�0�0�0�0�+�+�+�+�+�+�+�+�:�:�:�:�:�:�1�1�1�1�1�1�0�0�0�0�0�0�������1�1�1�1�1�1�*�*�*�*�*�*������ 5����4
�4
�4
�4
�4
�V�4
�4
�4
�4
�4
r

Zerion Mini Shell 1.0