$48 GRAYBYTE WORDPRESS FILE MANAGER $51

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

/opt/alt/python311/lib64/python3.11/unittest/__pycache__/

HOME
Current File : /opt/alt/python311/lib64/python3.11/unittest/__pycache__//util.cpython-311.pyc
�

���h_���dZddlmZmZddlmZdZdZdZdZ	dZ
dZee	ezezeze
zz
ZedksJ�d�Z
d	�Zdd�Zd�Zd
�Zd�Zd�Zedd��Zd�Zd�ZdS)zVarious utility functions.�)�
namedtuple�Counter)�commonprefixT�P��c��t|��|z
|z
}|tkr(d|d|�||t|��|z
d�fz}|S)Nz%s[%d chars]%s)�len�_PLACEHOLDER_LEN)�s�	prefixlen�	suffixlen�skips    �4/opt/alt/python311/lib64/python3.11/unittest/util.py�_shortenrsW���q�6�6�I��	�)�D�������*�9�*�
�t�Q�s�1�v�v�	�7I�7J�7J�5K�L�L���H�c�V���ttt|����}ttt|����}|t
kr|St
|���t	����t
|�z
tztzz
}|tkrZttztz|�z
zt
ksJ�t�t|���t��fd�|D����St�tt���t��fd�|D����S)Nc3�2�K�|]}�|�d�zV��dS�N���.0r�prefixr
s  ��r�	<genexpr>z'_common_shorten_repr.<locals>.<genexpr>'s0�����:�:��V�a�	�
�
�m�+�:�:�:�:�:�:rc3�d�K�|]*}�t|�d�tt��zV��+dSr)r�
_MIN_DIFF_LEN�_MIN_END_LENrs  ��rrz'_common_shorten_repr.<locals>.<genexpr>*sP����� � ���(�1�Y�Z�Z�=�-��N�N�N� � � � � � r)�tuple�map�	safe_repr�maxr
�_MAX_LENGTHr�_MIN_BEGIN_LENr�_MIN_COMMON_LENr)�args�maxlen�
common_lenrr
s   @@r�_common_shorten_reprr(s8������Y��%�%�&�&�D�
��S�$���
 �
 �F�
������
�$�
�
�F��F���I���9�$�~�5�8H�H�J�J��O�#�#�� 0�0�?�B���"�$�&1�2�2�2�2��&�.�*�=�=���:�:�:�:�:�T�:�:�:�:�:�:�
�f�n�o�
>�
>�F�� � � � � �� � � � � � rFc���	t|��}n*#t$rt�|��}YnwxYw|rt	|��t
kr|S|dt
�dzS)Nz [truncated]...)�repr�	Exception�object�__repr__r
r")�obj�short�results   rr r -sv��&��c�������&�&�&�����%�%����&������C��K�K�+�-�-��
��,�;�,��"3�3�3s��$9�9c�$�|j�d|j��S)N�.)�
__module__�__qualname__)�clss r�strclassr66s���n�n�n�c�&6�&6�7�7rc��dx}}g}g}		||}||}||kr8|�|��|dz
}|||kr|dz
}|||k�n�||kr8|�|��|dz
}|||kr|dz
}|||k�nm|dz
}	|||kr|dz
}|||k�|dz
}|||kr|dz
}|||k�n'#|dz
}|||kr|dz
}|||k�wxYwnJ#t$r=|�||d���|�||d���YnwxYw��G||fS)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.
    rT�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�u����q�!�!�!��Q����q�k�Q�&�&���F�A��q�k�Q�&�&���Q����!�!�!�$�$�$��Q����Q�i�1�n�n���F�A��Q�i�1�n�n���Q����"�1�+��*�*��Q���#�1�+��*�*���F�A� ��)�q�.�.��Q���!��)�q�.�.�����F�A� ��)�q�.�.��Q���!��)�q�.�.�.�.�.�.����	�	�	��N�N�8�A�B�B�<�(�(�(����f�Q�R�R�j�)�)�)��E�	����/�6�J��s+�BD�C�:#D�$D�D�AE�Ec��g}|rR|���}	|�|��n%#t$r|�|��YnwxYw|�R||fS)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_differencerJbs����G�
�!��|�|�~�~��	!��M�M�$�������	!�	!�	!��N�N�4� � � � � �	!����	�!��F�?�s�0�A�Ac��||k||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]�\}}	|	|ur�
dx}
}t	||��D]}|||	kr
|
dz
}
|||<�t|��D]\}}
|
|	kr
|dz
}|||<�|
|kr&t|
||	��}|�|����t|��D][\}}	|	|ur�
d}t	||��D]}|||	kr
|dz
}|||<�td||	��}|�|���\|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_ys�����<�<��h���q�A��q�6�6�3�q�6�6�q�A��8�8�D�
�F��Q�<�<� � ���4��4�<�<�������q�!���	�	�A���t�t�|�|���
����!���&�q�\�\�	�	�M�A�z��T�!�!���
����!����E�>�>��U�E�4�0�0�D��M�M�$������Q�<�<�	�	���4��4�<�<�����q�!���	�	�A���t�t�|�|���
����!�����E�4�(�(���
�
�d������Mrc��t|��t|��}}g}|���D]G\}}|�|d��}||kr&t|||��}|�|���H|���D]/\}}||vr&td||��}|�|���0|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�y� � ���e����d�A�����E�>�>��U�E�4�0�0�D��M�M�$������w�w�y�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�4�4�4�8�8�8�&�&�&�R���"���
�J�z�#:�;�;�	�!�!�!�F����r


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
10 Feb 2026 9.36 AM
root / linksafe
0755
__init__.cpython-311.opt-1.pyc
4.146 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
__init__.cpython-311.opt-2.pyc
2.426 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
__init__.cpython-311.pyc
4.146 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
__main__.cpython-311.opt-1.pyc
0.656 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
__main__.cpython-311.opt-2.pyc
0.625 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
__main__.cpython-311.pyc
0.656 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
_log.cpython-311.opt-1.pyc
4.712 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
_log.cpython-311.opt-2.pyc
4.555 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
_log.cpython-311.pyc
4.712 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
async_case.cpython-311.opt-1.pyc
6.469 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
async_case.cpython-311.opt-2.pyc
6.286 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
async_case.cpython-311.pyc
6.835 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
case.cpython-311.opt-1.pyc
77.593 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
case.cpython-311.opt-2.pyc
62.881 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
case.cpython-311.pyc
77.67 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
loader.cpython-311.opt-1.pyc
26.511 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
loader.cpython-311.opt-2.pyc
23.936 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
loader.cpython-311.pyc
26.766 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
main.cpython-311.opt-1.pyc
13.49 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
main.cpython-311.opt-2.pyc
13.316 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
main.cpython-311.pyc
13.49 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
mock.cpython-311.opt-1.pyc
126.076 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
mock.cpython-311.opt-2.pyc
106.694 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
mock.cpython-311.pyc
126.176 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
result.cpython-311.opt-1.pyc
12.678 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
result.cpython-311.opt-2.pyc
10.934 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
result.cpython-311.pyc
12.678 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
runner.cpython-311.opt-1.pyc
16.107 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
runner.cpython-311.opt-2.pyc
15.519 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
runner.cpython-311.pyc
16.107 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
signals.cpython-311.opt-1.pyc
3.802 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
signals.cpython-311.opt-2.pyc
3.802 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
signals.cpython-311.pyc
3.802 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
suite.cpython-311.opt-1.pyc
17.463 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
suite.cpython-311.opt-2.pyc
16.49 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
suite.cpython-311.pyc
17.463 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
util.cpython-311.opt-1.pyc
8.032 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
util.cpython-311.opt-2.pyc
7.362 KB
7 Jan 2026 10.45 PM
root / linksafe
0644
util.cpython-311.pyc
8.191 KB
7 Jan 2026 10.45 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF