Your IP : 18.225.56.181


Current Path : /opt/alt/python34/lib64/python3.4/lib2to3/fixes/__pycache__/
Upload File :
Current File : //opt/alt/python34/lib64/python3.4/lib2to3/fixes/__pycache__/fix_apply.cpython-34.pyo

�
j fm�@sodZddlmZddlmZddlmZddlmZmZm	Z	Gdd�dej
�ZdS)	zIFixer for apply().

This converts apply(func, v, k) into (func)(*v, **k).�)�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	CsJ|j}|d}|d}|jd�}|j}|j�}|jtj|jfkr�|j|jks�|j	d
jtj
kr�t|�}nd|_|j�}d|_|dk	r�|j�}d|_ntj
tjd�|g}|dk	r7|jt�tj
tj
d�|g�d|d_nt||d	|�S)N�func�args�kwdsr��*z**� �prefix���r)�syms�getrZclone�typer�NAMEZatomZpowerZchildren�
DOUBLESTARrrZLeaf�STAR�extendrr)	�selfZnodeZresultsrr	r
rrZ	l_newargs�r�</opt/alt/python34/lib64/python3.4/lib2to3/fixes/fix_apply.py�	transforms.	

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


?>