$83 GRAYBYTE WORDPRESS FILE MANAGER $95

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.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/python310/lib64/python3.10/unittest/__pycache__/

HOME
Current File : /opt/alt/python310/lib64/python3.10/unittest/__pycache__//util.cpython-310.opt-1.pyc
o

���h_�@s�dZddlmZmZddlmZdZdZdZdZ	dZ
dZee	eeee
Zdd	�Z
d
d�Zdd
d�Zdd�Zdd�Zdd�Zdd�Zedd�Zdd�Zdd�ZdS)zVarious utility functions.�)�
namedtuple�Counter)�commonprefixT�P��cCsBt|�||}|tkrd|d|�||t|�|d�f}|S)Nz%s[%d chars]%s)�len�_PLACEHOLDER_LEN)�s�	prefixlenZ	suffixlen�skip�r
�4/opt/alt/python310/lib64/python3.10/unittest/util.py�_shortens&rcs�ttt|��}ttt|��}|tkr|St|��t���t|�tt}|t	kr<t
�t|��t��fdd�|D��St
�tt	��t��fdd�|D��S)Nc3s �|]}�|�d�VqdS�Nr
��.0r
��prefixrr
r�	<genexpr>'s�z'_common_shorten_repr.<locals>.<genexpr>c3s(�|]}�t|�d�tt�VqdSr)r�
_MIN_DIFF_LEN�_MIN_END_LENrrr
rr*s� �)�tuple�map�	safe_repr�maxr�_MAX_LENGTHr�_MIN_BEGIN_LENr	�_MIN_COMMON_LENr)�args�maxlenZ
common_lenr
rr�_common_shorten_reprs ��r!FcCsNzt|�}Wntyt�|�}Ynw|rt|�tkr|S|dt�dS)Nz [truncated]...)�repr�	Exception�object�__repr__rr)�objZshort�resultr
r
rr-s�rcCsd|j|jfS)Nz%s.%s)�
__module__�__qualname__)�clsr
r
r�strclass6sr+cCs^d}}g}g}	z�||}||}||kr0|�|�|d7}|||kr/|d7}|||ks%n^||krN|�|�|d7}|||krM|d7}|||ksCn@|d7}z&|||krc|d7}|||ksYW|d7}|||krx|d7}|||ksnn|d7}|||kr�|d7}|||ks�wWnty�|�||d��|�||d��Y||fSwq	)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�missingZ
unexpected�e�ar
r
r�sorted_list_difference9sX
��
�����������r7cCsHg}|r |��}z|�|�Wnty|�|�Ynw|s||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�
ValueErrorr-)r0r1r4�itemr
r
r�unorderable_list_differencebs��r<cCs||k||kS)z.Return -1 if x < y, 0 if x == y and 1 if x > yr
)�x�yr
r
r�
three_way_cmpssr?ZMismatchzactual expected valuecCs,t|�t|�}}t|�t|�}}t�}g}t|�D]G\}}	|	|ur$qd}
}t||�D]}|||	kr=|
d7}
|||<q-t|�D]\}}
|
|	krR|d7}|||<qB|
|krbt|
||	�}|�|�qt|�D],\}}	|	|urpqgd}t||�D]}|||	kr�|d7}|||<qwtd||	�}|�|�qg|S)�HReturns list of (cnt_act, cnt_exp, elem) triples where the counts differrr,)�listrr$�	enumerate�range�	_Mismatchr-)r1r0r
�t�m�nZNULLr'r2�elem�cnt_s�cnt_tr3Z
other_elem�diffr
r
r�_count_diff_all_purposeysD��
��rLc	Cs�t|�t|�}}g}|��D]\}}|�|d�}||kr(t|||�}|�|�q|��D]\}}||vr@td||�}|�|�q-|S)r@r)r�items�getrDr-)	r1r0r
rEr'rHrIrJrKr
r
r�_count_diff_hashable�s
�
�rON)F)�__doc__�collectionsrrZos.pathrZ
__unittestrr	rrrrrr!rr+r7r<r?rDrLrOr
r
r
r�<module>s4
���
	)
#


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-310.opt-1.pyc
3.331 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
__init__.cpython-310.opt-2.pyc
1.615 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
__init__.cpython-310.pyc
3.331 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
__main__.cpython-310.opt-1.pyc
0.408 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
__main__.cpython-310.opt-2.pyc
0.38 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
__main__.cpython-310.pyc
0.408 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
_log.cpython-310.opt-1.pyc
2.641 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
_log.cpython-310.opt-2.pyc
2.491 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
_log.cpython-310.pyc
2.641 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
async_case.cpython-310.opt-1.pyc
4.463 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
async_case.cpython-310.opt-2.pyc
4.463 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
async_case.cpython-310.pyc
4.65 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
case.cpython-310.opt-1.pyc
47.321 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
case.cpython-310.opt-2.pyc
32.748 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
case.cpython-310.pyc
47.369 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
loader.cpython-310.opt-1.pyc
14.013 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
loader.cpython-310.opt-2.pyc
11.43 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
loader.cpython-310.pyc
14.102 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
main.cpython-310.opt-1.pyc
7.395 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
main.cpython-310.opt-2.pyc
7.229 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
main.cpython-310.pyc
7.395 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
mock.cpython-310.opt-1.pyc
77.932 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
mock.cpython-310.opt-2.pyc
58.745 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
mock.cpython-310.pyc
77.958 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
result.cpython-310.opt-1.pyc
7.866 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
result.cpython-310.opt-2.pyc
6.102 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
result.cpython-310.pyc
7.866 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
runner.cpython-310.opt-1.pyc
6.805 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
runner.cpython-310.opt-2.pyc
6.228 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
runner.cpython-310.pyc
6.805 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
signals.cpython-310.opt-1.pyc
2.216 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
signals.cpython-310.opt-2.pyc
2.216 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
signals.cpython-310.pyc
2.216 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
suite.cpython-310.opt-1.pyc
10.043 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
suite.cpython-310.opt-2.pyc
9.086 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
suite.cpython-310.pyc
10.043 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
util.cpython-310.opt-1.pyc
4.398 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
util.cpython-310.opt-2.pyc
3.727 KB
9 Jan 2026 2.06 PM
root / linksafe
0644
util.cpython-310.pyc
4.449 KB
9 Jan 2026 2.06 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF