Hacked By AnonymousFox

Current Path : /opt/alt/python35/lib64/python3.5/lib2to3/fixes/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/lib2to3/fixes/__pycache__/fix_isinstance.cpython-35.opt-2.pyc



���]H�@s=ddlmZddlmZGdd�dej�ZdS)�)�
fixer_base)�tokenc@s.eZdZdZdZdZdd�ZdS)�
FixIsinstanceTz�
    power<
        'isinstance'
        trailer< '(' arglist< any ',' atom< '('
            args=testlist_gexp< any+ >
        ')' > > ')' >
    >
    �cCsUt�}|d}|j}g}t|�}x�|D]�\}}	|	jtjkr�|	j|kr�|t|�dkr�||djtjkr�t	|�q5q5|j
|	�|	jtjkr5|j|	j�q5W|r�|djtjkr�|d=t|�dkr7|j}
|
j
|d_
|
j|d�n||dd�<|j�dS)N�args�����r	)�setZchildren�	enumerate�typer�NAME�value�len�COMMA�next�append�add�parent�prefix�replaceZchanged)�selfZnode�resultsZnames_insertedZtestlistrZnew_args�iterator�idx�argZatom�r�3/opt/alt/python35/lib64/python3.5/fix_isinstance.py�	transforms*	
	!0

	zFixIsinstance.transformN)�__name__�
__module__�__qualname__Z
BM_compatibleZPATTERNZ	run_orderrrrrrrsrN)�rZ
fixer_utilrZBaseFixrrrrr�<module>s

Hacked By AnonymousFox1.0, Coded By AnonymousFox