%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /snap/core26/current/lib/python3.14/unittest/__pycache__/
Upload File :
Create Path :
Current File : //snap/core26/current/lib/python3.14/unittest/__pycache__/util.cpython-314.pyc

+
4��j_����Rt^RIHtHt^RIHtRt^Pt^t^t	^t
^t]]	],],],]
,,
t]^8�gQhRt
RtRRltRtRtR	tR
t]!RR4tR
tRtR#)zVarious utility functions.)�
namedtuple�Counter)�commonprefixTc��\V4V,
V,
pV\8�d"RVRVW0\V4V,
R3,pV#)z%s[%d chars]%sN)�len�_PLACEHOLDER_LEN)�s�	prefixlen�	suffixlen�skips&&& � /lib/python3.14/unittest/util.py�_shortenr
sI���q�6�I��	�)�D������*�9�
�t�s�1�v�	�7I�7J�5K�L�L���H�c�aa�\\\V44p\\\V44pV\
8:dV#\
V4o\	S4o\
VS,
\,\,,
pV\8�d{\\,\,VS,
,\
8gQh\S\V4o\;QJd.VV3RlV4FNK	5#!VV3RlV44#\S\\4o\;QJd.VV3RlV4FNK	5#!VV3RlV44#)c3�<<"�TFpSVSR,x�K	R#5i�N���.0r�prefixr	s& ��r�	<genexpr>�'_common_shorten_repr.<locals>.<genexpr>'s����:�T��V�a�	�
�m�+�+�T�s�c3�b<"�TF$pS\VSR\\4,x�K&	R#5ir)r
�
_MIN_DIFF_LEN�_MIN_END_LENrs& ��rrr*s/���� ��Q��(�1�Y�Z�=�-��N�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��&�.�*�=���u�:�T�:�u�:�u�:�T�:�:�:�
�f�n�o�
>�F��5� �� �5� �5� �� � � rc���\V4pV'd\	V4\
8dV#VR\
R,# \d\PT4pLPi;i)Nz [truncated]...)�repr�	Exception�object�__repr__rr)�obj�short�results&& rrr-sW��&��c����C��K�+�-��
��,�;��"3�3�3��	�&�����%��&�s�;� A�Ac�<�VP:RVP:2#)�.)�
__module__�__qualname__)�clss&r�strclassr36s���n�n�c�&6�&6�7�7rc�f�^;r#.p.pW,pW,pWg8d5VPV4V^,
pW,V8XdV^,
pKKLWg8�d5VPV4V^,
pW,V8XdV^,
pKK�V^,
pW,V8XdV^,
pKV^,
pW,V8XdV^,
pKK� T^,
pY,T8XdT^,
pKi;i \d,TPYR4TPYR4YE3#i;i)a^Finds 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.
N)�append�
IndexError�extend)�expected�actual�i�j�missing�
unexpected�e�as&&      r�sorted_list_differencer@9s:��
�I�A��G��J�
�	���A��	�A��u����q�!��Q����k�Q�&���F�A�'����!�!�!�$��Q����i�1�n���F�A�%��Q����"�+��*��Q���+���F�A� �)�q�.��Q���)����F�A� �)�q�.��Q���)���	��N�N�8�B�<�(����f�R�j�)�����		�s6�AC:�8C:�	C:�C�1!C:�#C7�7C:�:1D0�/D0c��.pV'd%VP4pVPV4K,W!3# \dTPT4KNi;i)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�
ValueErrorr5)r8r9r<�items&&  r�unorderable_list_differencerFbsO���G�
��|�|�~��	!��M�M�$��
�?���	�	!��N�N�4� �	!�s�2�A�Ac��W8�W8,
#)z.Return -1 if x < y, 0 if x == y and 1 if x > yr)�x�ys&&r�
three_way_cmprJss��
�E�a�e��r�Mismatchzactual expected valuec�v�\V4\V4r2\V4\V4rT\4p.p\V4F�wr�W�JdK^;r�\	W�4FpW,,V	8XgKV
^,
p
WbV&K!	\V4Fwr�W�8XgK
V^,
pWcV&K	W�8wgKn\W�V	4pVP
V4K�	\V4FYwr�W�JdK^p\	W�4FpW<,V	8XgKV^,
pWcV&K!	\^W�4pVP
V4K[	V#�zHReturns list of (cnt_act, cnt_exp, elem) triples where the counts differ)�listrr)�	enumerate�range�	_Mismatchr5)r9r8r�t�m�n�NULLr-r:�elem�cnt_s�cnt_tr;�
other_elem�diffs&&             r�_count_diff_all_purposer[ys#����<��h��q��q�6�3�q�6�q��8�D�
�F��Q�<����<������q��A��t�t�|���
���!���'�q�\�M�A��!���
���!��*��>��U�4�0�D��M�M�$�� � �Q�<����<�����q��A��t�t�|���
���!�����E�(���
�
�d�� ��Mrc�P�\V4\V4r2.pVP4F<wrVVPV^4pWg8wgK\WgV4pVP	V4K>	VP4F*wrWWR9gK
\^Wu4pVP	V4K,	V#rM)r�items�getrQr5)	r9r8rrRr-rVrWrXrZs	&&       r�_count_diff_hashabler_�s����6�?�G�H�-�q�
�F��w�w�y������d�A����>��U�4�0�D��M�M�$��	!�
�w�w�y����=��Q��,�D��M�M�$��!��MrN)F)�__doc__�collectionsrr�os.pathr�
__unittestrrr rr!rr
r%rr3r@rFrJrQr[r_rrr�<module>rds��� �+� �
�
�������������!1�1�O�C� �!�#/�0�1�
������
� �*4�8�&�R�"�
�z�#:�;�	�!�Fr

Zerion Mini Shell 1.0