AlkantarClanX12

Your IP : 3.15.211.71


Current Path : /opt/alt/python310/lib64/python3.10/lib2to3/fixes/__pycache__/
Upload File :
Current File : //opt/alt/python310/lib64/python3.10/lib2to3/fixes/__pycache__/fix_isinstance.cpython-310.opt-2.pyc

o

6��fH�@s0	ddlmZddlmZGdd�dej�ZdS)�)�
fixer_base)�tokenc@s eZdZdZdZdZdd�ZdS)�
FixIsinstanceTz�
    power<
        'isinstance'
        trailer< '(' arglist< any ',' atom< '('
            args=testlist_gexp< any+ >
        ')' > > ')' >
    >
    �cCs�t�}|d}|j}g}t|�}|D]8\}}	|	jtjkr9|	j|vr9|t|�dkr8||djtjkr8t	|�qq|�
|	�|	jtjkrJ|�|	j�q|rX|djtjkrX|d=t|�dkrp|j}
|
j
|d_
|
�|d�dS||dd�<|��dS)N�args�����)�set�children�	enumerate�typer�NAME�value�len�COMMA�next�append�add�parent�prefix�replaceZchanged)�selfZnodeZresultsZnames_insertedZtestlistr�new_args�iterator�idx�argZatom�r�C/opt/alt/python310/lib64/python3.10/lib2to3/fixes/fix_isinstance.py�	transforms.$�
�zFixIsinstance.transformN)�__name__�
__module__�__qualname__Z
BM_compatibleZPATTERNZ	run_orderrrrrrrs
	rN)�rZ
fixer_utilrZBaseFixrrrrr�<module>s