$59 GRAYBYTE WORDPRESS FILE MANAGER $81

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

/opt/alt/python39/lib64/python3.9/unittest/__pycache__/

HOME
Current File : /opt/alt/python39/lib64/python3.9/unittest/__pycache__//util.cpython-39.opt-1.pyc
a

XC?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|�||}|tkr>d|d|�||t|�|d�f}|S)Nz%s[%d chars]%s)�len�_PLACEHOLDER_LEN)�s�	prefixlenZ	suffixlen�skip�r
�2/opt/alt/python39/lib64/python3.9/unittest/util.py�_shortens&rcs�ttt|��}ttt|��}|tkr(|St|��t���t|�tt}|t	krxt
�t|��t��fdd�|D��St
�tt	��t��fdd�|D��S)Nc3s|]}�|�d�VqdS�Nr
��.0r
��prefixrr
r�	<genexpr>'�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"FcCsNzt|�}Wnty(t�|�}Yn0|r:t|�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,cCs4d}}g}g}z�||}||}||krT|�|�|d7}|||kr�|d7}q<n�||kr�|�|�|d7}|||kr�|d7}qnnb|d7}z8|||kr�|d7}q�W|d7}|||kr�|d7}q�n |d7}|||kr�|d7}q�0Wqt�y(|�||d��|�||d��Y�q,Yq0q||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.
    r�N)�append�
IndexError�extend)�expected�actual�i�j�missingZ
unexpected�e�ar
r
r�sorted_list_difference9s>

�r8cCsFg}|r>|��}z|�|�Wqty:|�|�Yq0q||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.)r1r2r5�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]�\}}	|	|urHq6d}
}t||�D] }|||	krZ|
d7}
|||<qZt|�D] \}}
|
|	kr�|d7}|||<q�|
|kr6t|
||	�}|�|�q6t|�D]X\}}	|	|ur�q�d}t||�D] }|||	kr�|d7}|||<q�td||	�}|�|�q�|S)�HReturns list of (cnt_act, cnt_exp, elem) triples where the counts differrr-)�listrr%�	enumerate�range�	_Mismatchr.)r2r1r
�t�m�nZNULLr(r3�elem�cnt_s�cnt_tr4Z
other_elem�diffr
r
r�_count_diff_all_purposeys<


rMc	Cs�t|�t|�}}g}|��D]2\}}|�|d�}||krt|||�}|�|�q|��D]&\}}||vrZtd||�}|�|�qZ|S)rAr)r�items�getrEr.)	r2r1r
rFr(rIrJrKrLr
r
r�_count_diff_hashable�srPN)F)�__doc__�collectionsrrZos.pathrZ
__unittestrr	rrrrrr"rr,r8r=r@rErMrPr
r
r
r�<module>s2
���
	)
#


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
22 Jul 2025 8.33 AM
root / linksafe
0755
__init__.cpython-39.opt-1.pyc
3.331 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
__init__.cpython-39.opt-2.pyc
1.611 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
__init__.cpython-39.pyc
3.331 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
__main__.cpython-39.opt-1.pyc
0.404 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
__main__.cpython-39.opt-2.pyc
0.372 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
__main__.cpython-39.pyc
0.404 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
_log.cpython-39.opt-1.pyc
2.477 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
_log.cpython-39.opt-2.pyc
2.315 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
_log.cpython-39.pyc
2.477 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
async_case.cpython-39.opt-1.pyc
4.484 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
async_case.cpython-39.opt-2.pyc
4.484 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
async_case.cpython-39.pyc
4.672 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
case.cpython-39.opt-1.pyc
47.003 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
case.cpython-39.opt-2.pyc
32.37 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
case.cpython-39.pyc
47.051 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
loader.cpython-39.opt-1.pyc
14.102 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
loader.cpython-39.opt-2.pyc
11.479 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
loader.cpython-39.pyc
14.19 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
main.cpython-39.opt-1.pyc
7.366 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
main.cpython-39.opt-2.pyc
7.192 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
main.cpython-39.pyc
7.366 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
mock.cpython-39.opt-1.pyc
76.177 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
mock.cpython-39.opt-2.pyc
57.221 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
mock.cpython-39.pyc
76.203 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
result.cpython-39.opt-1.pyc
7.785 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
result.cpython-39.opt-2.pyc
5.96 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
result.cpython-39.pyc
7.785 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
runner.cpython-39.opt-1.pyc
7.033 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
runner.cpython-39.opt-2.pyc
6.433 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
runner.cpython-39.pyc
7.033 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
signals.cpython-39.opt-1.pyc
2.202 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
signals.cpython-39.opt-2.pyc
2.202 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
signals.cpython-39.pyc
2.202 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
suite.cpython-39.opt-1.pyc
9.88 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
suite.cpython-39.opt-2.pyc
8.888 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
suite.cpython-39.pyc
9.88 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
util.cpython-39.opt-1.pyc
4.296 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
util.cpython-39.opt-2.pyc
3.593 KB
19 Jun 2025 12.11 PM
root / linksafe
0644
util.cpython-39.pyc
4.347 KB
19 Jun 2025 12.11 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF