$55 GRAYBYTE WORDPRESS FILE MANAGER $99

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/python27/lib64/python2.7/unittest/

HOME
Current File : /opt/alt/python27/lib64/python2.7/unittest//util.pyo
�
�V~gc@s�dZddlmZmZeZdZed�Zd�Z	d�Z
ed�Zedd	�Zd
�Z
d�Zd�Zd
S(sVarious utility functions.i����(t
namedtupletOrderedDictiPcCs\yt|�}Wn tk
r2tj|�}nX|sLt|�tkrP|S|t dS(Ns [truncated]...(treprt	Exceptiontobjectt__repr__tlent_MAX_LENGTH(tobjtshorttresult((s2/opt/alt/python27/lib64/python2.7/unittest/util.pyt	safe_reprs
cCsd|j|jfS(Ns%s.%s(t
__module__t__name__(tcls((s2/opt/alt/python27/lib64/python2.7/unittest/util.pytstrclassscCshd}}g}g}xEtr]y||}||}||kr}|j|�|d7}x�|||kry|d7}q\Wn�||kr�|j|�|d7}x|||kr�|d7}q�Wn^|d7}z%x|||kr�|d7}q�WWd|d7}x|||kr |d7}qWXWqtk
rY|j||�|j||�PqXqW||fS(srFinds 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.
    iiN(tTruetappendt
IndexErrortextend(texpectedtactualtitjtmissingt
unexpectedteta((s2/opt/alt/python27/lib64/python2.7/unittest/util.pytsorted_list_differences:
	








	cCsg}g}x�|r�|j�}y|j|�Wntk
rR|j|�nX|rxI||fD]8}yxtr�|j|�qrWWqftk
r�qfXqfWqqW|rxU|r|j�}|j|�yxtr�|j|�q�WWq�tk
rq�Xq�W||fS||fS(s�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.
    (tpoptremovet
ValueErrorRR(RRtignore_duplicateRRtitemtlst((s2/opt/alt/python27/lib64/python2.7/unittest/util.pytunorderable_list_difference>s4	
	
	
	

tMismatchsactual expected valuecCs�t|�t|�}}t|�t|�}}t�}g}x�t|�D]�\}}	|	|krlqNnd}
}x>t||�D]-}|||	kr�|
d7}
|||<q�q�Wx=t|�D]/\}}
|
|	kr�|d7}|||<q�q�W|
|krNt|
||	�}|j|�qNqNWx�t|�D]�\}}	|	|krTq6nd}x>t||�D]-}|||	krj|d7}|||<qjqjWtd||	�}|j|�q6W|S(sHReturns list of (cnt_act, cnt_exp, elem) triples where the counts differii(tlistRRt	enumeratetranget	_MismatchR(RRtstttmtntNULLR
Rtelemtcnt_stcnt_tRt
other_elemtdiff((s2/opt/alt/python27/lib64/python2.7/unittest/util.pyt_count_diff_all_purposeds<	



cCs8t�}x(|D] }|j|d�d||<qW|S(s@Return dict of element counts, in the order they were first seenii(Rtget(titerabletcR.((s2/opt/alt/python27/lib64/python2.7/unittest/util.pyt_ordered_count�s	
c	Cs�t|�t|�}}g}xZ|j�D]L\}}|j|d�}||kr,t|||�}|j|�q,q,WxH|j�D]:\}}||kr�td||�}|j|�q�q�W|S(sHReturns list of (cnt_act, cnt_exp, elem) triples where the counts differi(R7titemsR4R(R(	RRR)R*R
R.R/R0R2((s2/opt/alt/python27/lib64/python2.7/unittest/util.pyt_count_diff_hashable�sN(t__doc__tcollectionsRRRt
__unittestRtFalseRRRR#R(R3R7R9(((s2/opt/alt/python27/lib64/python2.7/unittest/util.pyt<module>s
		)$	#	


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
24 Jan 2025 9.37 AM
root / linksafe
0755
test
--
24 Jan 2025 9.35 AM
root / linksafe
0755
__init__.py
2.717 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
__init__.pyc
2.979 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
__init__.pyo
2.979 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
__main__.py
0.232 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
__main__.pyc
0.489 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
__main__.pyo
0.489 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
case.py
42.953 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
case.pyc
41.882 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
case.pyo
41.882 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
loader.py
13.181 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
loader.pyc
11.389 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
loader.pyo
11.252 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
main.py
8.87 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
main.pyc
7.923 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
main.pyo
7.923 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
result.py
6.16 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
result.pyc
8.044 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
result.pyo
8.044 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
runner.py
6.38 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
runner.pyc
7.719 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
runner.pyo
7.719 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
signals.py
2.354 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
signals.pyc
2.843 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
signals.pyo
2.843 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
suite.py
9.579 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
suite.pyc
10.735 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
suite.pyo
10.735 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
util.py
4.498 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
util.pyc
4.514 KB
8 Jan 2025 10.43 AM
root / linksafe
0644
util.pyo
4.514 KB
8 Jan 2025 10.43 AM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF