Your IP : 216.73.216.213


Current Path : /opt/alt/python27/lib/python2.7/site-packages/py/_code/
Upload File :
Current File : //opt/alt/python27/lib/python2.7/site-packages/py/_code/assertion.pyo

�
%q�]c@s�ddlZddlZejjjZdZd�Zdefd��YZej	d
krmde_
dZndd	lm
Zej	dks�ejjd�r�dd	lm
ZneZdS(i����Nc	Cs�|p	djd�}|dg}xc|dD]W}|jd�s`|jd�s`|jd�rp|j|�q-|dcd	|7<q-W|d }dg}dg}x�|dD]�}|jd�r;|dr�d
}nd}|jt|��|dcd7<|jd�|jdd
t|�d||d�q�|jd�ry|j�|j�||dc|d7<q�|jd
t|�|d�q�Wdj|�S(s�This formats an explanation

    Normally all embedded newlines are escaped, however there are
    three exceptions: 
{, 
} and 
~.  The first two are intended
    cover nested explanations, see function and attribute explanations
    for examples (.visit_Call(), visit_Attribute()).  The last one is
    for when one explanation needs to span multiple lines, e.g. when
    displaying diffs.
    ts
iit{t}t~i����s\nsand   swhere s +s  (tsplitt
startswithtappendtlentpoptjoin(	texplanationt	raw_linestlinestltresulttstacktstackcnttlinets((sC/opt/alt/python27/lib/python2.7/site-packages/py/_code/assertion.pyt_format_explanations0

-
		
	
.

#tAssertionErrorcBseZd�ZRS(cGshtj||�|rwyt|d�|_Wqdtjjk
rI�qdd|djt|d�f|_qdXn�tj	j
tjd��}ym|j	j
}|dk	r�y|j|jdt�}Wntk
r�d}q�Xt|j��j�}nWntjjk
rd}nX|r@t||dt�|_n	d|_|jsd|jf|_ndS(Nis<[broken __repr__] %s at %0xd>it	assertiontshould_fails!<could not determine information>(tBuiltinAssertionErrort__init__tstrtmsgtpytbuiltint_sysext	__class__tidtcodetFrametsyst	_getframet
fullsourcetNonetgetstatementtlinenotTruet
IndexErrortdeindenttstripterrortENOENTtreinterprettargs(tselfR/tftsource((sC/opt/alt/python27/lib/python2.7/site-packages/py/_code/assertion.pyR5s2(


		(t__name__t
__module__R(((sC/opt/alt/python27/lib/python2.7/site-packages/py/_code/assertion.pyR4siitbuiltinss*old reinterpretation not available for py3(t	interpretiitjava(ii(ii(R"RRR5RRR%t_reprcompareRtversion_infoR4treinterpret_oldtpy._code._assertionoldR6tplatformRtpy._code._assertionnewR.(((sC/opt/alt/python27/lib/python2.7/site-packages/py/_code/assertion.pyt<module>s	,!		!