$47 GRAYBYTE WORDPRESS FILE MANAGER $70

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.160.161 | ADMIN IP 216.73.216.86
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/python312/lib64/python3.12/unittest/__pycache__/

HOME
Current File : /opt/alt/python312/lib64/python3.12/unittest/__pycache__//util.cpython-312.pyc
�

=��i_���dZddlmZmZddlmZdZdZdZdZ	dZ
dZee	ezezeze
zz
Zedk\sJ�d�Z
d	�Zdd
�Zd�Zd�Zd
�Zd�Zedd�Zd�Zd�Zy)zVarious utility functions.�)�
namedtuple�Counter)�commonprefixT�P��c�n�t|�|z
|z
}|tkDrd|d|||t|�|z
dfz}|S)Nz%s[%d chars]%s)�len�_PLACEHOLDER_LEN)�s�	prefixlen�	suffixlen�skips    �4/opt/alt/python312/lib64/python3.12/unittest/util.py�_shortenrsK���q�6�I��	�)�D������*�9�
�t�Q�s�1�v�	�7I�7J�5K�L�L���H�c�����ttt|��}ttt|��}|t
kr|St
|��t	���t
|�z
tztzz
}|tkDrIttztz|�z
zt
ksJ�t�t|��t��fd�|D��St�tt��t��fd�|D��S)Nc3�.�K�|]}�|�dz���y�w�N���.0r�prefixr
s  ��r�	<genexpr>z'_common_shorten_repr.<locals>.<genexpr>'s�����:�T��V�a�	�
�m�+�T�s�c3�T�K�|]}�t|�dtt�z���!y�wr)r�
_MIN_DIFF_LEN�_MIN_END_LENrs  ��rrz'_common_shorten_repr.<locals>.<genexpr>*s-����� ��Q��(�1�Y�Z�=�-��N�N��s�%()�tuple�map�	safe_repr�maxr
�_MAX_LENGTHr�_MIN_BEGIN_LENr�_MIN_COMMON_LENr)�args�maxlen�
common_lenrr
s   @@r�_common_shorten_reprr(s������Y��%�&�D�
��S�$��
 �F�
�����
�$�
�F��F��I���9�$�~�5�8H�H�J�J��O�#�� 0�0�?�B���"�$�&1�2�	2�2��&�.�*�=���:�T�:�:�:�
�f�n�o�
>�F�� �� � � rc��	t|�}|rt	|�t
kr|S|dt
dzS#t$rtj|�}Y�BwxYw)Nz [truncated]...)�repr�	Exception�object�__repr__r
r")�obj�short�results   rr r -sW��&��c����C��K�+�-��
��,�;��"3�3�3��	�&�����%��&�s�/�A�Ac�8�|j�d|j��S)N�.)�
__module__�__qualname__)�clss r�strclassr66s���n�n�c�&6�&6�7�7rc��dx}}g}g}		||}||}||kr-|j|�|dz
}|||k(ry|dz
}|||k(r�nj||kDr-|j|�|dz
}|||k(rG|dz
}|||k(r�n8|dz
}	|||k(r|dz
}|||k(r�|dz
}|||k(r|dz
}|||k(r�	��#|dz
}|||k(r|dz
}|||k(r�wwxYw#t$r.|j||d�|j||d�Y||fSwxYw)arFinds elements in only one or the other of two, sorted input lists.

    Returns a two-element tuple of lists.    The first list contains those
    elements in the "expected" list but not in the "actual" list, and the
    second contains those elements in the "actual" list but not in the
    "expected" list.    Duplicate elements in either input list are ignored.
    r�N)�append�
IndexError�extend)�expected�actual�i�j�missing�
unexpected�e�as        r�sorted_list_differencerD9s���
�I�A���G��J�
�	����A��q�	�A��1�u����q�!��Q����q�k�Q�&���F�A��q�k�Q�&��Q���!�!�!�$��Q����Q�i�1�n���F�A��Q�i�1�n��Q����"�1�+��*��Q���#�1�+��*���F�A� ��)�q�.��Q���!��)�q�.�+��(��F�A� ��)�q�.��Q���!��)�q�.���	��N�N�8�A�B�<�(����f�Q�R�j�)���J���		�sA�:C�1C�8C�?B2�C�0C�2C�C�C�1D
�	D
c��g}|r%|j�}	|j|�|r�%||fS#t$r|j|�Y�#wxYw)z�Same behavior as sorted_list_difference but
    for lists of unorderable items (like dicts).

    As it does a linear search per item (remove) it
    has O(n*n) performance.)�pop�remove�
ValueErrorr9)r<r=r@�items    r�unorderable_list_differencerJbsV���G�
��|�|�~��	!��M�M�$����F�?���	�	!��N�N�4� �	!�s�.�A�
Ac��||kD||kz
S)z.Return -1 if x < y, 0 if x == y and 1 if x > yr)�x�ys  r�
three_way_cmprNss��
��E�a�!�e��r�Mismatchzactual expected valuec�<�t|�t|�}}t|�t|�}}t�}g}t|�D]y\}}	|	|ur�dx}
}t	||�D]}|||	k(s�|
dz
}
|||<�t|�D]\}}
|
|	k(s�|dz
}|||<�|
|k7s�\t|
||	�}|j
|��{t|�D]N\}}	|	|ur�d}t	||�D]}|||	k(s�|dz
}|||<�td||	�}|j
|��P|S)�HReturns list of (cnt_act, cnt_exp, elem) triples where the counts differrr8)�listr
r,�	enumerate�range�	_Mismatchr9)r=r<r�t�m�n�NULLr0r>�elem�cnt_s�cnt_tr?�
other_elem�diffs               r�_count_diff_all_purposer_ysI����<��h��q�A��q�6�3�q�6�q�A��8�D�
�F��Q�<���4��4�<�������q�!��A���t�t�|���
����!���'�q�\�M�A�z��T�!���
����!��*��E�>��U�E�4�0�D��M�M�$�� � �Q�<���4��4�<�����q�!��A���t�t�|���
����!�����E�4�(���
�
�d�� ��Mrc�H�t|�t|�}}g}|j�D];\}}|j|d�}||k7s�t|||�}|j	|��=|j�D](\}}||vs�td||�}|j	|��*|S)rQr)r�items�getrUr9)	r=r<rrVr0rZr[r\r^s	         r�_count_diff_hashablerc�s����6�?�G�H�-�q�A�
�F��w�w�y���e����d�A����E�>��U�E�4�0�D��M�M�$��	!�
�w�w�y���e��q�=��Q��t�,�D��M�M�$��!��MrN)F)�__doc__�collectionsrr�os.pathr�
__unittestr"rr#rr$rrr(r r6rDrJrNrUr_rcrrr�<module>rhs��� �+� �
�
�������������!1�1�O�C� �!�#/�0�1�
������
� �*4�8�&�R�"�
�z�#:�;�	�!�Fr

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
4 May 2026 11.11 PM
root / linksafe
0755
__init__.cpython-312.opt-1.pyc
3.367 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
__init__.cpython-312.opt-2.pyc
1.651 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
__init__.cpython-312.pyc
3.367 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
__main__.cpython-312.opt-1.pyc
0.617 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
__main__.cpython-312.opt-2.pyc
0.589 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
__main__.cpython-312.pyc
0.617 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
_log.cpython-312.opt-1.pyc
4.582 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
_log.cpython-312.opt-2.pyc
4.433 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
_log.cpython-312.pyc
4.582 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
async_case.cpython-312.opt-1.pyc
5.894 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
async_case.cpython-312.opt-2.pyc
5.711 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
async_case.cpython-312.pyc
6.261 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
case.cpython-312.opt-1.pyc
68.07 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
case.cpython-312.opt-2.pyc
53.439 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
case.cpython-312.pyc
68.136 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
loader.cpython-312.opt-1.pyc
23.25 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
loader.cpython-312.opt-2.pyc
20.685 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
loader.cpython-312.pyc
23.47 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
main.cpython-312.opt-1.pyc
13.257 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
main.cpython-312.opt-2.pyc
13.091 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
main.cpython-312.pyc
13.257 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
mock.cpython-312.opt-1.pyc
115.652 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
mock.cpython-312.opt-2.pyc
96.118 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
mock.cpython-312.pyc
115.729 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
result.cpython-312.opt-1.pyc
12.455 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
result.cpython-312.opt-2.pyc
10.475 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
result.cpython-312.pyc
12.455 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
runner.cpython-312.opt-1.pyc
16.089 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
runner.cpython-312.opt-2.pyc
15.402 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
runner.cpython-312.pyc
16.089 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
signals.cpython-312.opt-1.pyc
3.539 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
signals.cpython-312.opt-2.pyc
3.539 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
signals.cpython-312.pyc
3.539 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
suite.cpython-312.opt-1.pyc
15.083 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
suite.cpython-312.opt-2.pyc
14.13 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
suite.cpython-312.pyc
15.083 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
util.cpython-312.opt-1.pyc
6.963 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
util.cpython-312.opt-2.pyc
6.288 KB
20 Apr 2026 7.46 AM
root / linksafe
0644
util.cpython-312.pyc
7.103 KB
20 Apr 2026 7.46 AM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF Static GIF