AlkantarClanX12

Your IP : 3.145.7.253


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_apply.cpython-35.opt-2.pyc



���]~	�@siddlmZddlmZddlmZddlmZmZmZGdd�dej	�Z
dS)�)�pytree)�token)�
fixer_base)�Call�Comma�parenthesizec@s(eZdZdZdZdd�ZdS)�FixApplyTa.
    power< 'apply'
        trailer<
            '('
            arglist<
                (not argument<NAME '=' any>) func=any ','
                (not argument<NAME '=' any>) args=any [','
                (not argument<NAME '=' any>) kwds=any] [',']
            >
            ')'
        >
    >
    c	Cs�|j}|d}|d}|jd�}|rz|j|jjkrKdS|j|jjkrz|jdjdkrzdS|r�|j|jjkr�|jdjdkr�dS|j}|j�}|jt	j
|jfkr|j|jks
|jdjt	j
krt|�}d|_|j�}d|_|dk	rU|j�}d|_tjt	jd�|g}|dk	r�|jt�tjt	j
d�|g�d	|d_t||d
|�S)
N�func�args�kwds�z**r��*� �prefix���r)�syms�get�typeZ	star_expr�argumentZchildren�valuerZcloner�NAMEZatomZpower�
DOUBLESTARrrZLeaf�STAR�extendrr)	�selfZnode�resultsrr	r
rrZ	l_newargs�r�./opt/alt/python35/lib64/python3.5/fix_apply.py�	transforms@	

				

zFixApply.transformN)�__name__�
__module__�__qualname__Z
BM_compatibleZPATTERNrrrrrrsrN)r
rZpgen2rrZ
fixer_utilrrrZBaseFixrrrrr�<module>	s