Your IP : 3.143.241.205


Current Path : /opt/alt/python33/lib64/python3.3/lib2to3/fixes/__pycache__/
Upload File :
Current File : //opt/alt/python33/lib64/python3.3/lib2to3/fixes/__pycache__/fix_isinstance.cpython-33.pyc

�
��fHc@sCdZddlmZddlmZGdd�dej�ZdS(u,Fixer that cleans up a tuple argument to isinstance after the tokens
in it were fixed.  This is mainly used to remove double occurrences of
tokens as a leftover of the long -> int / unicode -> str conversion.

eg.  isinstance(x, (int, long)) -> isinstance(x, (int, int))
       -> isinstance(x, int)
i(u
fixer_base(utokencBs2|EeZdZdZdZdZdd�ZdS(u
FixIsinstanceu�
    power<
        'isinstance'
        trailer< '(' arglist< any ',' atom< '('
            args=testlist_gexp< any+ >
        ')' > > ')' >
    >
    icCs^t�}|d}|j}g}t|�}x�|D]�\}}	|	jtjkr�|	j|kr�|t|�dkr�||djtjkr�t	|�q5q�q5|j
|	�|	jtjkr5|j|	j�q5q5W|r|djtjkr|d=nt|�dkr@|j}
|
j
|d_
|
j|d�n||dd�<|j�dS(Nuargsiii����i����(usetuchildrenu	enumerateutypeutokenuNAMEuvalueulenuCOMMAunextuappenduadduparentuprefixureplaceuchanged(uselfunodeuresultsunames_insertedutestlistuargsunew_argsuiteratoruidxuarguatom((uA/opt/alt/python33/lib64/python3.3/lib2to3/fixes/fix_isinstance.pyu	transforms*	
	!0
	

	uFixIsinstance.transformNT(u__name__u
__module__u__qualname__uTrueu
BM_compatibleuPATTERNu	run_orderu	transform(u
__locals__((uA/opt/alt/python33/lib64/python3.3/lib2to3/fixes/fix_isinstance.pyu
FixIsinstancesu
FixIsinstanceN(u__doc__uu
fixer_baseu
fixer_utilutokenuBaseFixu
FixIsinstance(((uA/opt/alt/python33/lib64/python3.3/lib2to3/fixes/fix_isinstance.pyu<module>
s

?>