Psyduck - 可達鴨 之 鴨力山大2


Server : LiteSpeed
System : Linux premium217.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User : alloknri ( 880)
PHP Version : 8.1.34
Disable Function : NONE
Directory :  /opt/alt/python313/lib64/python3.13/unittest/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python313/lib64/python3.13/unittest/__pycache__/util.cpython-313.pyc
�

�dYh_���SrSSKJrJr SSKJr SrSrSrSr	Sr
Sr\\	\-\-\-\
--
r\S:�deSr
S	rSS
jrSrSrS
rSr\"SS5rSrSrg)zVarious utility functions.�)�
namedtuple�Counter)�commonprefixT�P��c�n�[U5U-
U-
nU[:�aSUSUX0[U5U-
S4-nU$)Nz%s[%d chars]%s)�len�_PLACEHOLDER_LEN)�s�	prefixlen�	suffixlen�skips    �4/opt/alt/python313/lib64/python3.13/unittest/util.py�_shortenrsI���q�6�I��	�)�D������*�9�
�t�s�1�v�	�7I�7J�5K�L�L���H�c��^^�[[[U55n[[[U55nU[
::aU$[
U5m[	T5m[
UT-
[-[--
nU[:�aK[[-[-UT-
-[
:de[T[U5m[UU4SjU55$[T[[5m[UU4SjU55$)Nc3�4># �UH
nTUTS-v� M g7f�N���.0r�prefixr
s  ��r�	<genexpr>�'_common_shorten_repr.<locals>.<genexpr>'s����:�T��V�a�	�
�m�+�T�s�c3�Z># �UH nT[UTS[[5-v� M" g7fr)r�
_MIN_DIFF_LEN�_MIN_END_LENrs  ��rrr*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��[U5nU(a[	U5[
:aU$US[
S-$![a [RU5nNIf=f)Nz [truncated]...)�repr�	Exception�object�__repr__r
r#)�obj�short�results   rr!r!-sW��&��c����C��K�+�-��
��,�;��"3�3�3��	�&�����%��&�s�5�A�Ac�<�UR<SUR<3$)N�.)�
__module__�__qualname__)�clss r�strclassr76s���n�n�c�&6�&6�7�7rc��S=p#/n/nXnXnXg:a.URU5 US-
nXU:XaUS-
nXU:XaMOlXg:�a.URU5 US-
nXU:XaUS-
nXU:XaMO9US-
nXU:XaUS-
nXU:XaMUS-
nXU:XaUS-
nXU:XaMM�!US-
nXU:XaUS-
nXU:XaMff=f![a+ URXS5 URXS5 XE4$f=f)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.
r�N)�append�
IndexError�extend)�expected�actual�i�j�missing�
unexpected�e�as        r�sorted_list_differencerE9sa��
�I�A��G��J�
�	���A��	�A��u����q�!��Q����k�Q�&���F�A��k�Q�&�����!�!�!�$��Q����i�1�n���F�A��i�1�n���Q����"�+��*��Q���#�+��*���F�A� �)�q�.��Q���!�)�q�.�+��(��F�A� �)�q�.��Q���!�)�q�.���	��N�N�8�B�<�(����f�R�j�)�����		�s;�8C�0C�8C�>B3�C�3C�C�C�0D
�	D
c��/nU(a+UR5nURU5 U(aM+X!4$![a URU5 N)f=f)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�
ValueErrorr:)r=r>rA�items    r�unorderable_list_differencerKbsV���G�
��|�|�~��	!��M�M�$���(��?���	�	!��N�N�4� �	!�s�8�A�Ac��X:�X:-
$)z.Return -1 if x < y, 0 if x == y and 1 if x > yr)�x�ys  r�
three_way_cmprOss��
�E�a�e��r�Mismatchzactual expected valuec�B�[U5[U5p2[U5[U5pT[5n/n[U5H{up�X�LaMS=p�[	X�5HnX,U	:XdM
U
S-
n
XbU'M [U5Hup�X�:XdMUS-
nXcU'M X�:wdM^[X�U	5nUR
U5 M} [U5HOup�X�LaMSn[	X�5HnX<U	:XdM
US-
nXcU'M [SX�5nUR
U5 MQ U$)�HReturns list of (cnt_act, cnt_exp, elem) triples where the counts differrr9)�listr
r-�	enumerate�range�	_Mismatchr:)r>r=r�t�m�n�NULLr1r?�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�L�[U5[U5p2/nUR5H;upVURUS5nXg:wdM[XgU5nUR	U5 M= UR5H)upWXR;dM[SXu5nUR	U5 M+ U$)rRr)r�items�getrVr:)	r>r=rrWr1r[r\r]r_s	         r�_count_diff_hashablerd�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�
__unittestr#rr$rr%rrr)r!r7rErKrOrVr`rdrrr�<module>ris��� �+� �
�
�������������!1�1�O�C� �!�#/�0�1�
������
� �*4�8�&�R�"�
�z�#:�;�	�!�Fr
Name
Size
Permissions
Options
__init__.cpython-313.opt-1.pyc
3.214 KB
-rw-r--r--
__init__.cpython-313.opt-2.pyc
1.491 KB
-rw-r--r--
__init__.cpython-313.pyc
3.214 KB
-rw-r--r--
__main__.cpython-313.opt-1.pyc
0.624 KB
-rw-r--r--
__main__.cpython-313.opt-2.pyc
0.593 KB
-rw-r--r--
__main__.cpython-313.pyc
0.624 KB
-rw-r--r--
_log.cpython-313.opt-1.pyc
4.731 KB
-rw-r--r--
_log.cpython-313.opt-2.pyc
4.58 KB
-rw-r--r--
_log.cpython-313.pyc
4.731 KB
-rw-r--r--
async_case.cpython-313.opt-1.pyc
6 KB
-rw-r--r--
async_case.cpython-313.opt-2.pyc
5.834 KB
-rw-r--r--
async_case.cpython-313.pyc
6.39 KB
-rw-r--r--
case.cpython-313.opt-1.pyc
68.718 KB
-rw-r--r--
case.cpython-313.opt-2.pyc
55.468 KB
-rw-r--r--
case.cpython-313.pyc
68.793 KB
-rw-r--r--
loader.cpython-313.opt-1.pyc
21.548 KB
-rw-r--r--
loader.cpython-313.opt-2.pyc
19.188 KB
-rw-r--r--
loader.cpython-313.pyc
21.793 KB
-rw-r--r--
main.cpython-313.opt-1.pyc
12.961 KB
-rw-r--r--
main.cpython-313.opt-2.pyc
12.796 KB
-rw-r--r--
main.cpython-313.pyc
12.961 KB
-rw-r--r--
mock.cpython-313.opt-1.pyc
123.352 KB
-rw-r--r--
mock.cpython-313.opt-2.pyc
104.255 KB
-rw-r--r--
mock.cpython-313.pyc
123.43 KB
-rw-r--r--
result.cpython-313.opt-1.pyc
12.722 KB
-rw-r--r--
result.cpython-313.opt-2.pyc
10.826 KB
-rw-r--r--
result.cpython-313.pyc
12.722 KB
-rw-r--r--
runner.cpython-313.opt-1.pyc
16.636 KB
-rw-r--r--
runner.cpython-313.opt-2.pyc
15.962 KB
-rw-r--r--
runner.cpython-313.pyc
16.636 KB
-rw-r--r--
signals.cpython-313.opt-1.pyc
3.593 KB
-rw-r--r--
signals.cpython-313.opt-2.pyc
3.593 KB
-rw-r--r--
signals.cpython-313.pyc
3.593 KB
-rw-r--r--
suite.cpython-313.opt-1.pyc
15.583 KB
-rw-r--r--
suite.cpython-313.opt-2.pyc
14.623 KB
-rw-r--r--
suite.cpython-313.pyc
15.583 KB
-rw-r--r--
util.cpython-313.opt-1.pyc
6.865 KB
-rw-r--r--
util.cpython-313.opt-2.pyc
6.194 KB
-rw-r--r--
util.cpython-313.pyc
7.009 KB
-rw-r--r--