HEX
Server: LiteSpeed
System: Linux br-asc-web1845.main-hosting.eu 5.14.0-611.42.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 24 05:30:20 EDT 2026 x86_64
User: u790421558 (790421558)
PHP: 8.2.30
Disabled: system, exec, 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
�

b�Zg�;�
�Z�dZddlZddlZddlZddlZddlZddlZddlZgd�Zej	ddkZ
e��Ze
re
ZeZeZeZeZd�ZneZeZeZeZd�Ze
reZn	eZeedfd�Ze
r
eZeZeZeZeZeZn�ddlZefd	�Zee ��d
���Zee ��d���Zee ��d���Zee ��d
���Zee ��d���Zee ��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fe/e
ee0e1d��f��e2e3e1e4fd�Z5d'd�Z&YnwxYw	ddl6m7Z7n#e'$rej8ej9zdfd�Z7YnwxYw	ddl6m: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�b�	lru_cache�which�get_terminal_size�redirect_stderr�FileNotFoundError�PermissionError�ProcessLookupError�InterruptedError�ChildProcessError�FileExistsError�c�,�|�d��S)Nzlatin-1)�encode��ss �C/opt/alt/python311/lib64/python3.11/site-packages/psutil/_compat.pyr	r	2s���x�x�	�"�"�"�c��|S�N�rs rr	r	;s���r�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       rrrJs1���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)Nrr�__)�lenr.�dir�
startswith�setattr�getattrr�__init__)�self�args�kwargs�	unwrap_me�attr�TemporaryClassr+s     ��rrJzN_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_infor.)rT�	classinfo�values   r�__subclasscheck__ze_instance_checking_exception.<locals>.wrapped.<locals>.TemporaryClass.__metaclass__.__subclasscheck__�s"�� #����q� 1��)�%��5�5�5rN)�__name__�
__module__�__qualname__rWr])rVs�r�
__metaclass__rR�s=�������6�6�6�6�6�6�6�6�6�6rra)r^r_r`rJ�typera�
__classcell__)r+rPrVs@��rrPrB�sr��������	�	�	�	�	�	�6�6�6�6�6�6�6�D�6�6�6�6�6�6�6rrP)r^�__doc__)rVrP�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)rerfs` r�_instance_checking_exceptionrg�s#���	"�	"�	"�	"�	"�2�rc�J�t|dt��tjkS�N�errno)rIr rj�ENOENT�rUs rrr�����t�W�i�0�0�E�L�@�@rc�J�t|dt��tjkSri)rIr rj�ESRCHrls rrr�����t�W�i�0�0�E�K�?�?rc�^�t|dt��tjtjfvSri)rIr rj�EACCES�EPERMrls rrr�s"���t�W�i�0�0�U�\�5�;�4O�O�Orc�J�t|dt��tjkSri)rIr rj�EINTRrls rrr�rprc�J�t|dt��tjkSri)rIr rj�ECHILDrls rrr�rmrc�J�t|dt��tjkSri)rIr rj�EEXISTrls rrr�rmr�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�)rK�tup�hashs   rrJz_HashedSeq.__init__�s"���D����G�!�T�#�Y�Y�D�N�N�Nrc��|jSrr�)rKs r�__hash__z_HashedSeq.__hash__�s
���>�!rN)r^r_r`�	__slots__r�rJr�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�vrbs  �r�	<genexpr>z_make_key.<locals>.<genexpr>s+�����/�/�Q���a���/�/�/�/�/�/rc3�4�K�|]\}}�|��V��dSrr)r��kr�rbs   �rr�z_make_key.<locals>.<genexpr>s/�����>�>���A�T�T�!�W�W�>�>�>�>�>�>rrr)�itemsr�)rL�kwds�typed�kwd_mark�	fasttypes�sorted�tuplerbrE�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<|SrYr)rLr��result�MISSES�stats�
user_functions   ���r�wrapperz7lru_cache.<locals>.decorating_function.<locals>.wrappers2���*�]�D�9�D�9�9�F��&�M�M�M�Q�&�M�M�M�!�Mrc��	��||���}�|�	��}|�	ur�
�xxdz
cc<|S�|i|��}|�|<�
�xxdz
cc<|SrYr)
rLr�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)Nrr)�acquire�release)rLr�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>.wrapper.s����#�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��
_CacheInforEr�)r�r�r�r�r�r�s������r�
cache_infoz:lru_cache.<locals>.decorating_function.<locals>.cache_info[s\���������#�%��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_clearesv���������#��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��getrEr|�__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_functions��������������������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`` rr
r
s7����
g	D�g	D�g	D�g	D�g	D�g	D�R#�"r)rc�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�seenrF�normdir�thefile�names`          rrr}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)r^r_r`rrrrr�s�������rr)r
c#�~K�tj}	|t_|V�|t_dS#|t_wxYwr)r!�stderr)�
new_target�originals  rr
r
�sC�����:��	"�#�C�J�����!�C�J�J�J���C�J�!�!�!�!s�.�<)r�F)r�)@rd�collections�
contextlibrjr�r�r!r/�__all__�version_infor�objectr �intrr�xrange�strrrr	rr7rrrrrrr�r�rg�EnvironmentError�python_implementation�OSErrorryr<r(r
r��	threadingr|�dummy_threading�
namedtupler��listr�r��	frozensetrbr�r�rEr��shutilr�F_OK�X_OKr�
subprocessrrr
�contextmanagerrrr�<module>rs���
��
����������������	�	�	�	�
�
�
�
���������(
��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�D5�#D5�9E�F'�E
�F'�
E�F'�E�A	F'�&F'�+F2�2G
�G
�G�	G$�#G$�(G/�/H�H�	H�H*�)H*