HEX
Server: LiteSpeed
System: Linux us-phx-web1284.main-hosting.eu 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: u300739242 (300739242)
PHP: 8.2.30
Disabled: system, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Upload Files
File: //opt/alt/python311/lib64/python3.11/site-packages/psutil/__pycache__/_compat.cpython-311.pyc
�

8�;f�;�
�f�dZddlZddlZddlZddlZddlZddlZddlZgd�Zej	ddkZ
e��Ze
re
ZeZeZeZeZd�Zd�ZneZeZeZeZd�Zd�Ze
reZn	eZeed	fd
�Ze
r
eZeZeZeZeZeZn�ddlZefd�Z e e!��d���Ze e!��d
���Ze e!��d���Ze e!��d���Ze e!��d���Ze e!��d���Zej"��dkr.	e#ej$d���#e$rYne#$rdZ%e&e%���wxYw	ddlm'Z'nj#e($rb	ddl)m*Z*n#e($r	ddl+m*Z*YnwxYwej,dgd���Z-Gd�de.��Z/efe0e
ee1e2d��f��e3e4e2e5fd�Z6d)d�Z'YnwxYw	ddl7m8Z8n#e($rej9ej:zdfd �Z8YnwxYw	dd!l7m;Z;n#e($rd*d#�Z;YnwxYw	dd$l<m=Z>n#e($rGd%�d&e��Z>YnwxYw	dd'lm?Z?dS#e($rej@d(���Z?YdSwxYw)+z�Module which provides compatibility with older Python versions.
This is more future-compatible rather than the opposite (prefer latest
Python 3 way of doing things).
�N)�PY3�long�range�super�unicode�
basestring�u�b�	lru_cache�which�get_terminal_size�redirect_stderr�FileNotFoundError�PermissionError�ProcessLookupError�InterruptedError�ChildProcessError�FileExistsError�c��|S�N���ss �C/opt/alt/python311/lib64/python3.11/site-packages/psutil/_compat.pyr	r	2�����c�,�|�d��S)Nzlatin-1)�encoders rr
r
5s���x�x�	�"�"�"rc�"�t|d��S)N�unicode_escape)rrs rr	r	>s���q�*�+�+�+rc��|Srrrs rr
r
Arr�c�l�|tu�r�tj|��}	|j|jjd}n&#ttf$rd}t|���wxYw	|j	}nD#ttf$r0	|jj	}n#t$rd}t|���wxYwYnwxYw|D]�}|j�
��D]�}	t|tj��sft|t"��r|j}n/	|j}n&#t$r|�||��}YnwxYwt|tj���fn#tt*f$rY��wxYw|j|jurn����nd}t|���|turt/||��St/|��S)zuLike Python 3 builtin super(). If called without any arguments
        it attempts to infer them at runtime.
        rz'super() used in a function with no argsz$super() used in a non-newstyle classzsuper() called outside a method)�	_SENTINEL�sys�	_getframe�f_locals�f_code�co_varnames�
IndexError�KeyError�RuntimeError�__mro__�AttributeError�	__class__�__dict__�values�
isinstance�types�FunctionType�property�fget�__func__�__get__�	TypeError�	func_code�_builtin_super)�type_�type_or_obj�
framedepth�f�msg�mro�meths       rrrPs1���I����
�j�)�)�A�
(��j���)=�a�)@�A������)�
(�
(�
(�?��"�3�'�'�'�
(����
,�!�)����"�L�1�
,�
,�
,�,�%�/�7�C�C��%�,�,�,�@�C�&�s�+�+�+�,�����C�
,�����
(�
(��!�N�1�1�3�3���D�
!�",�T�5�3E�"F�"F�
L�)�$��9�9�	L�(,�y���!L�+/�=�D�D��'5�!L�!L�!L�+/�<�<��U�+K�+K�D�D�D�!L����#-�T�5�3E�"F�"F�
L���+�I�6�!�!�!� ��!�����~���1�1���2����7��"�3�'�'�'��i�'�'�!�%��5�5�5��e�$�$�$si�>�#A!�%A-�-B.�?B�B.�B(�(B.�-B.�7E�	D�E� D4�1E�3D4�4E�E&�%E&c����fd�}|S)Nc�^����G��fd�d�����j�_�j�_�S)Nc�B���eZdZ��fd�ZG�fd�de��Z�xZS)�E_instance_checking_exception.<locals>.wrapped.<locals>.TemporaryClassc	�0��t|��dkrft|d���rP|d}t|��D]6}|�d��st	||t||�����7dSt
�|��j|i|��dS)Nr#r�__)�lenr3�dir�
startswith�setattr�getattrr�__init__)�self�args�kwargs�	unwrap_me�attr�TemporaryClassr0s     ��rrOzN_instance_checking_exception.<locals>.wrapped.<locals>.TemporaryClass.__init__�s�����4�y�y�A�~�~�*�T�!�W�n�*M�*M�~�$(��G�	�$'�	�N�N�N�N�D�#'�?�?�4�#8�#8�N� '��d�G�I�t�4L�4L� M� M� M��N�N�=��n�d�3�3�<�!��%+�����rc� ��eZdZ�fd�Zd�ZdS)�S_instance_checking_exception.<locals>.wrapped.<locals>.TemporaryClass.__metaclass__c����|��Srr)�cls�inst�instance_checkers  �r�__instancecheck__ze_instance_checking_exception.<locals>.wrapped.<locals>.TemporaryClass.__metaclass__.__instancecheck__�s���/�/��5�5�5rc�T�tj��d}t||��S�Nr#)r&�exc_infor3)rY�	classinfo�values   r�__subclasscheck__ze_instance_checking_exception.<locals>.wrapped.<locals>.TemporaryClass.__metaclass__.__subclasscheck__�s"�� #����q� 1��)�%��5�5�5rN)�__name__�
__module__�__qualname__r\rb)r[s�r�
__metaclass__rW�s=�������6�6�6�6�6�6�6�6�6�6rrf)rcrdrerO�typerf�
__classcell__)r0rUr[s@��rrUrG�sr��������	�	�	�	�	�	�6�6�6�6�6�6�6�D�6�6�6�6�6�6�6rrU)rc�__doc__)r[rU�base_exceptions`@�r�wrappedz-_instance_checking_exception.<locals>.wrapped�s\�����
6�
6�
6�
6�
6�
6�
6�
6��
6�
6�
6�('7�&?�N�#�%5�%=�N�"�!�!rr)rjrks` r�_instance_checking_exceptionrl�s#���	"�	"�	"�	"�	"�2�rc�J�t|dt��tjkS�N�errno)rNr%ro�ENOENT�rZs rrr�����t�W�i�0�0�E�L�@�@rc�J�t|dt��tjkSrn)rNr%ro�ESRCHrqs rrr�����t�W�i�0�0�E�K�?�?rc�^�t|dt��tjtjfvSrn)rNr%ro�EACCES�EPERMrqs rrr�s"���t�W�i�0�0�U�\�5�;�4O�O�Orc�J�t|dt��tjkSrn)rNr%ro�EINTRrqs rrr�rurc�J�t|dt��tjkSrn)rNr%ro�ECHILDrqs rrr�rrrc�J�t|dt��tjkSrn)rNr%ro�EEXISTrqs rrr�rrr�CPython�permzbbroken or incompatible Python implementation, see: https://github.com/giampaolo/psutil/issues/1659)r)�RLock�	CacheInfo)�hits�misses�maxsize�currsizec�"�eZdZdZefd�Zd�ZdS)�
_HashedSeq��	hashvaluec�4�||dd�<||��|_dSrr�)rP�tup�hashs   rrOz_HashedSeq.__init__�s"���D����G�!�T�#�Y�Y�D�N�N�Nrc��|jSrr�)rPs r�__hash__z_HashedSeq.__hash__�s
���>�!rN)rcrdre�	__slots__r�rOr�rrrr�r��s?������"�	�%)�	'�	'�	'�	'�	"�	"�	"�	"�	"rr�c	�H��|}	|r,||�����}
|	|z
}	|
D]}|	|z
}	�|r7|	|�fd�|D����z
}	|r|	|�fd�|
D����z
}	n*||	��dkr�|	d��|vr|	dSt|	��S)Nc3�.�K�|]}�|��V��dSrr)�.0�vrgs  �r�	<genexpr>z_make_key.<locals>.<genexpr>s+�����/�/�Q���a���/�/�/�/�/�/rc3�4�K�|]\}}�|��V��dSrr)r��kr�rgs   �rr�z_make_key.<locals>.<genexpr>s/�����>�>���A�T�T�!�W�W�>�>�>�>�>�>rr#r)�itemsr�)rQ�kwds�typed�kwd_mark�	fasttypes�sorted�tuplergrJ�key�sorted_items�items       `    r�	_make_keyr��s�������	�!�6�$�*�*�,�,�/�/�L��8�O�C�$�
�
���t�����	��5�5�/�/�/�/�$�/�/�/�/�/�/�C��
?��u�u�>�>�>�>��>�>�>�>�>�>���
�S��X�X��]�]�t�t�C��F�|�|�y�8�8��q�6�M��#���r�dFc������fd�}|S)zLeast-recently-used cache decorator, see:
        http://docs.python.org/3/library/functools.html#functools.lru_cache.
        c���������	�
���
�����i�ddg�d\��t��j�t�
t���
g���ddg�dd�<�g�d\����	�dkr���fd�}n$�����������f	d�}n������	�
���
������fd�}����
��fd�}��
��fd�}�|_||_||_tj|���S)	Nr)rr#)rr#�rc�8���|i|��}��xxdz
cc<|Sr^r)rQr��result�MISSES�stats�
user_functions   ���r�wrapperz7lru_cache.<locals>.decorating_function.<locals>.wrapper s2���*�]�D�9�D�9�9�F��&�M�M�M�Q�&�M�M�M�!�Mrc��	��||���}�|�	��}|�	ur�
�xxdz
cc<|S�|i|��}|�|<�
�xxdz
cc<|Sr^r)
rQr�r�r��HITSr��cache�	cache_get�make_key�rootr�r�r�s
    ���������rr�z7lru_cache.<locals>.decorating_function.<locals>.wrapper's����"�(�4��u�5�5�C�&�Y�s�D�1�1�F��T�)�)��d����q�(����%�
�*�]�D�9�D�9�9�F�!'�E�#�J��&�M�M�M�Q�&�M�M�M�!�Mrc���|s�r�||���}n|}����	�|��}|�W�\}|\}}}}||�<||�<|�}|x|�<|�<||�<||�<��xxdz
cc<|����S	����n#����wxYw�|i|��}����	�\}|�vrn`�����kr4|}	||	�<||	�<|	�x}�d<|�}
dx|�<|�<�|
=|	�|<n|�}||||g}|x|�<x|�<�|<��
xxdz
cc<����n#����wxYw|S)Nr#r)�acquire�release)rQr�r��linkr��	link_prev�	link_nextr��last�oldroot�oldkeyr��KEYr��NEXT�PREV�RESULT�_lenr�r��lockr�r��
nonlocal_rootr�r�r�s           ����������������rr�z7lru_cache.<locals>.decorating_function.<locals>.wrapper4s����#�u�#�&�h�t�T�5�9�9���"���L�L�N�N�N�'�(�y��~�~���+�&3�G�T�@D�=�I�y�#�v�.7�I�d�O�.7�I�d�O�#'��:�D�6:�:�D��J��d��)-�D��J�)-�D��J�!�$�K�K�K�1�,�K�K�K�#)��������,�������������������*�]�D�9�D�9�9�F��L�L�N�N�N�'�"/����%�<�<� �!�T�%�[�[�G�3�3�&*�G�+.�G�C�L�.4�G�F�O�6=�d�m�C�D�=��#3�%)�#�Y�F�7;�;�D��I��V�� %�f�
�)0�E�#�J�J�#'��:�D�$(�$��V�#<�D�CG�G�D��J�G��d��e�C�j��f�
�
�
��*�
�
�
�������������������!�Ms�AB%�%B;�A9E)�)E?c��������	t�����t���������S#����wxYw)zReport cache statistics.)r��
_CacheInforJr�)r�r�r�r�r�r�s������r�
cache_infoz:lru_cache.<locals>.decorating_function.<locals>.cache_infoas\���������#�%��d��U�6�]�G�S��Z�Z����L�L�N�N�N�N��D�L�L�N�N�N�N���s�*A�A,c��������	�����d}||ddg|dd�<ddg�dd�<����dS#����wxYw)z%Clear the cache and cache statistics.rN)r��clearr�)r�r�r�r�r�s ����r�cache_clearz;lru_cache.<locals>.decorating_function.<locals>.cache_clearksv���������#��K�K�M�M�M�(��+�D�#�T�4��6�D����G� !�1�v�E�!�!�!�H��L�L�N�N�N�N�N��D�L�L�N�N�N�N���s�0A�A3)	r��getrJr��__wrapped__r�r��	functools�update_wrapper)r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�s`   @@@@@@@@@@@@@@��r�decorating_functionz&lru_cache.<locals>.decorating_functions��������������������E���F�E��L�D�&� �H��	�I��D��7�7�D��D��T�4��.�D����G�!�F�M�&0�#�D�$��V��!�|�|�"�"�"�"�"�"�"�"�
��	"�	"�	"�	"�	"�	"�	"�	"�	"�	"�	"�	"�	"�	"�+"�+"�+"�+"�+"�+"�+"�+"�+"�+"�+"�+"�+"�+"�+"�+"�+"�+"�+"�+"�Z
#�
#�
#�
#�
#�
#�
#�
#�
#�
#�	
#�	
#�	
#�	
#�	
#�	
#�	
#�	
#�#0�G��!+�G��"-�G���+�G�]�C�C�Crr)r�r�r�s`` rrr
s7����
g	D�g	D�g	D�g	D�g	D�g	D�R#�"r)rc�f��d�}tj����r|�|��r�SdS|�*tj�dtj��}|sdS|�tj��}tj	dkr�tj
|vr |�dtj
��tj�dd���tj��}t�fd�|D����r�g}n�fd	�|D��}n�g}t��}|D]q}tj�|��}||vrL|�|��|D]4}	tj�||	��}
||
|��r|
ccS�5�rdS)
aJGiven a command, mode, and a PATH string, return the path which
        conforms to the given mode on the PATH, or None if there is no such
        file.

        `mode` defaults to os.F_OK | os.X_OK. `path` defaults to the result
        of os.environ.get("PATH"), or can be overridden with a custom search
        path.
        c��tj�|��o4tj||��otj�|��Sr)�os�path�exists�access�isdir)�fn�modes  r�
_access_checkzwhich.<locals>._access_check�sE������r�"�"�*��I�b�$�'�'�*���
�
�b�)�)�)�
rN�PATH�win32r�PATHEXT�c3��K�|]=}�����|�����V��>dSr)�lower�endswith�r��ext�cmds  �rr�zwhich.<locals>.<genexpr>�sA�����H�H��3�9�9�;�;�'�'��	�	���4�4�H�H�H�H�H�Hrc���g|]}�|z��Srrr�s  �r�
<listcomp>zwhich.<locals>.<listcomp>�s���6�6�6�s��s��6�6�6r)r�r��dirname�environr��defpath�split�pathsepr&�platform�curdir�insert�any�set�normcase�add�join)r�r�r�r��pathext�files�seenrK�normdir�thefile�names`          rrr�s����	�	�	��7�?�?�3���	��}�S�$�'�'�
��
��4��<��:�>�>�&�"�*�5�5�D��	��4��z�z�"�*�%�%���<�7�"�"��y��$�$����A�r�y�)�)�)��j�n�n�Y��3�3�9�9�"�*�E�E�G��H�H�H�H��H�H�H�H�H�
7�����6�6�6�6�g�6�6�6����E�E��u�u���	$�	$�C��g�&�&�s�+�+�G��d�"�"�����!�!�!�$�$�$�G��7�<�<��W�5�5�D�$�}�T�4�0�0�$�#������$���tr)r
��P�c���	ddl}ddl}ddl}	|�d|�d|jd����}|d|dfS#t$r|cYSwxYw#t$r|cYSwxYw)Nr�hhr#�1234)�fcntl�struct�termios�unpack�ioctl�
TIOCGWINSZ�	Exception�ImportError)�fallbackr�r�r��ress     rr
r
�s���	 ��L�L�L��M�M�M��N�N�N�
 ��m�m��%�+�+�a��);�V�D�D�����A���A��'�'���
 �
 �
 �����
 ������	�	�	��O�O�O�	���s"�A!�?A�A�A�!A0�/A0)�TimeoutExpiredc��eZdZdS)�SubprocessTimeoutExpiredN)rcrdrerrrr	r	�s�������rr	)rc#�~K�tj}	|t_|V�|t_dS#|t_wxYwr)r&�stderr)�
new_target�originals  rrr�sC�����:��	"�#�C�J�����!�C�J�J�J���C�J�!�!�!�!s�.�<)r�F)r�)Ari�collections�
contextlibror�r�r&r4�__all__�version_infor�objectr%�intrr�xrange�strrrr	r
rr<rrrrrrr�rrl�EnvironmentError�python_implementation�OSErrorr~rAr-rr�	threadingr��dummy_threading�
namedtupler��listr�r��	frozensetrgr�r�rJr��shutilr�F_OK�X_OKr
�
subprocessrr	r�contextmanagerrrr�<module>r#s���
��
����������������	�	�	�	�
�
�
�
���������(
��q��Q����F�H�H�	����D�
�F��G��J��E����#�#�#�#��D��E��G��J�,�,�,�����:%��E�E��N��9��5%�5%�5%�5%�v�J$�)��%�O�+��'��)��%�O�O��O�O�O�4=�����8"�!�"2�3�3�A�A�4�3�A�"�!�"2�3�3�@�@�4�3�@�"�!�"2�3�3�P�P�4�3�P�"�!�"2�3�3�@�@�4�3�@�"�!�"2�3�3�A�A�4�3�A�"�!�"2�3�3�A�A�4�3�A�&�x�%�'�'�9�4�4�		$��'�%�,��/�/�/���	�	�	��D��	$�	$�	$�B�
��,�s�#�#�#�	$����]#�#�#�#�#�#�#�#���[#�[#�[#�*�#�#�#�#�#�#�#���*�*�*�)�)�)�)�)�)�)�)�*����(��'��>�>�>���J�"�"�"�"�"�T�"�"�"����#�s�C��D�D��J�J�7�8�8���
������2n#�n#�n#�n#�n#�n#�[[#����~5����������3�3�3���"�'�)��1�1�1�1�1�1�3����n �(�(�(�(�(�(�(��� � � � � � � � � � ����*
�E�E�E�E�E�E�E���
�
�
�
�
�
�
�
�9�
�
�
�
�
�
����"�*�*�*�*�*�*�*�*���	"�	"�	"���"�"���"�"�"�"�	"���s��D"�"D;�)D;�?E�F-�E�F-�E!�F-� E!�!A	F-�,F-�1F8�8G�G�G�	G*�)G*�.G5�5H�
H�H�H0�/H0